:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f9fbfe;
  --line: #dbe4f0;
  --line-strong: #b9c8dc;
  --text: #172033;
  --muted: #64748b;
  --blue: #246bfe;
  --blue-weak: #e8f0ff;
  --green: #15a06e;
  --green-weak: #e9f8f1;
  --orange: #c77914;
  --orange-weak: #fff5e5;
  --red: #d9363e;
  --red-weak: #fff0f1;
  --violet: #7357d8;
  --shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 12px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 107, 254, 0.18);
}

.brand-logo-img {
  display: block;
  width: 48px;
  height: 48px;
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.brand-eyebrow {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.version-pill {
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-weak);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 6px;
  padding: 0 24px 14px;
  overflow-x: auto;
}

.nav-item {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.nav-item.active {
  border-color: rgba(36, 107, 254, 0.18);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 18px 24px 26px;
}

.content-pane {
  min-width: 0;
}

.control-strip {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.field-group {
  display: grid;
  gap: 6px;
  min-width: 128px;
}

.field-group label,
.form-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

select,
input {
  height: 38px;
  padding: 0 10px;
}

#cycleSelect {
  min-width: 136px;
}

#groupSelect {
  min-width: 132px;
}

textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.12);
}

.cutoff-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  white-space: nowrap;
}

.cutoff-control {
  align-items: center;
  flex-wrap: wrap;
  padding: 7px 10px;
}

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

.cutoff-date-input {
  width: 142px;
  height: 32px;
  padding: 0 8px;
  color: var(--text);
  font-weight: 700;
}

.cutoff-auto-btn {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cutoff-auto-btn:disabled {
  cursor: default;
  color: var(--muted);
  background: var(--panel-soft);
}

#cutoffModeText {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.cutoff-chip strong {
  color: var(--text);
}

.import-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tool-btn,
.icon-btn,
.small-btn,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.tool-btn {
  min-width: 96px;
  padding: 0 12px;
}

.tool-btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.tool-btn.success {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.tool-btn:disabled {
  border-color: var(--line);
  background: #eef2f7;
  color: #9aa8bb;
  cursor: not-allowed;
}

.tool-icon {
  width: 18px;
  text-align: center;
  font-weight: 900;
}

.icon-btn {
  width: 36px;
  padding: 0;
  font-size: 17px;
}

.small-btn,
.table-action {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.small-btn.primary,
.table-action.primary {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-weak);
}

.small-btn.danger,
.table-action.danger {
  border-color: rgba(217, 54, 62, 0.3);
  color: var(--red);
  background: var(--red-weak);
}

.view-root,
.import-preview {
  margin-top: 16px;
}

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

.page-title {
  display: grid;
  gap: 5px;
}

.page-title h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.page-title p {
  color: var(--muted);
  font-size: 13px;
}

.card,
.import-preview,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card {
  padding: 16px;
}

.grid {
  display: grid;
  gap: 12px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stage-notice {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(199, 121, 20, 0.28);
  border-radius: 8px;
  background: var(--orange-weak);
  color: var(--orange);
}

.stage-notice strong {
  color: var(--text);
}

.stage-notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stage-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stage-card.done {
  border-color: rgba(21, 160, 110, 0.24);
  background: var(--green-weak);
}

.stage-card.active {
  border-color: rgba(36, 107, 254, 0.28);
  background: var(--blue-weak);
}

.stage-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stage-card strong {
  font-size: 15px;
}

.stage-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.metric-label {
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.metric-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.metric-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.group-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.group-card-head,
.card-title-row,
.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-card h3,
.card h3,
.form-panel h3 {
  font-size: 17px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.blue {
  background: var(--blue-weak);
  color: var(--blue);
}

.badge.green,
.status-good {
  background: var(--green-weak);
  color: var(--green);
}

.badge.orange,
.status-watch {
  background: var(--orange-weak);
  color: var(--orange);
}

.badge.red,
.status-risk {
  background: var(--red-weak);
  color: var(--red);
}

.badge.gray {
  background: #eef2f7;
  color: var(--muted);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kv {
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.kv span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kv strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.progress-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.progress-bar i {
  display: block;
  width: var(--value);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.compact-table table {
  min-width: 640px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7faff;
  color: var(--muted);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.delta-up {
  color: var(--green);
  font-weight: 800;
}

.delta-down {
  color: var(--red);
  font-weight: 800;
}

.section-stack {
  display: grid;
  gap: 14px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tier-card {
  min-height: 188px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tier-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tier-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.form-panel {
  padding: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.wide {
  grid-column: span 2;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.mobile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.mobile-tabs button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.mobile-form {
  margin-bottom: 14px;
}

.mobile-card-list {
  display: grid;
  gap: 10px;
}

.mobile-data-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mobile-data-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-data-card b {
  font-size: 18px;
}

.mobile-card-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.rail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  font-weight: 800;
}

.rail-title strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue-weak);
  color: var(--blue);
  font-size: 12px;
}

.rail-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.rail-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.rail-item.warning {
  border-color: rgba(217, 54, 62, 0.22);
  background: var(--red-weak);
}

.rail-item.todo {
  border-color: rgba(199, 121, 20, 0.22);
  background: var(--orange-weak);
}

.rail-item strong {
  font-size: 13px;
}

.rail-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.rail-list.compact .rail-item {
  padding: 9px;
}

.import-preview {
  padding: 14px;
}

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

.preview-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.preview-card strong {
  display: block;
  margin-bottom: 5px;
}

.validation-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.validation-item {
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 13px;
}

.validation-item.error {
  background: var(--red-weak);
  color: var(--red);
}

.validation-item.warn {
  background: var(--orange-weak);
  color: var(--orange);
}

.validation-item.ok {
  background: var(--green-weak);
  color: var(--green);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.hidden,
.visually-hidden {
  display: none !important;
}

@media (max-width: 1260px) {
  body {
    min-width: 1024px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .right-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  .brand-block,
  .main-nav,
  .workspace {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-block {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .workspace,
  .control-strip,
  .right-rail,
  .metric-grid,
  .group-grid,
  .stage-grid,
  .tier-grid,
  .form-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .control-strip {
    display: grid;
    align-items: stretch;
  }

  .import-actions {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .tool-btn {
    flex: 1 1 130px;
  }

  .form-field.wide,
  .form-field.full {
    grid-column: auto;
  }
}

/* 平台维度改造 */
.platform-filter {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.platform-filter-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text);
}

.platform-filter-head span {
  color: var(--muted);
  font-size: 12px;
}

.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  padding: 8px 14px;
}

.platform-btn.active,
.platform-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  margin: 14px 0;
}

.horizontal-card {
  min-width: 0;
}

.horizontal-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.breakdown-row {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.breakdown-card {
  width: 188px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.breakdown-card strong {
  color: var(--text);
  line-height: 1.35;
}

.breakdown-card span {
  color: var(--muted);
  font-size: 12px;
}

.customer-card-mini {
  width: 170px;
}

.percapita-overview {
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

/* 首页商机横排筛选与核心小组人均产出 */
.core-forecast-card {
  margin: 14px 0;
}

.opportunity-breakdown {
  margin: 14px 0;
}

.customer-filter {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.customer-filter-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.customer-filter-head span {
  color: var(--muted);
  font-size: 12px;
}

.customer-filter-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.customer-filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  padding: 8px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-filter-btn.active,
.customer-filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.opportunity-table-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.opportunity-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.group-opportunity-table {
  min-width: 980px;
}

.customer-opportunity-table {
  min-width: 900px;
}

.core-forecast-table {
  min-width: 960px;
}

.opportunity-table th,
.opportunity-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.opportunity-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 1;
}

.opportunity-table tbody tr:hover,
.opportunity-table .selected-row {
  background: #f0f7ff;
}

.empty-cell {
  color: var(--muted);
  padding: 18px 12px !important;
  text-align: center !important;
}

@media (max-width: 720px) {
  .customer-filter-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-filter-btn {
    max-width: 180px;
  }
}

/* 首页管理者核心指标对比 */
.executive-compare-card {
  margin: 14px 0;
  padding: 18px;
}

.executive-compare-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.executive-compare-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.executive-compare-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.executive-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.executive-meta-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
}

.executive-meta-strip strong {
  color: var(--text);
  margin-left: 4px;
}

.executive-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.executive-compare-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
}

.executive-compare-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.executive-compare-item strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.executive-compare-item em {
  color: var(--primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.executive-compare-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.executive-compare-item.forecast {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.executive-compare-item.target {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.executive-compare-item.actual {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.executive-compare-item.gap {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.executive-compare-item.good {
  border-color: #86efac;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.executive-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
}

.executive-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.executive-compare-table th,
.executive-compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  white-space: nowrap;
}

.executive-compare-table tr:last-child td {
  border-bottom: 0;
}

.executive-compare-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.warning-cell {
  color: #c2410c;
  font-weight: 800;
}

.positive-cell {
  color: #15803d;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .executive-compare-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .executive-compare-head {
    flex-direction: column;
  }

  .executive-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* 正式版：月度过程管理指标 */
.executive-month-lines {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.executive-month-line {
  display: grid;
  grid-template-columns: 42px minmax(70px, 1fr);
  gap: 2px 8px;
  align-items: baseline;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 7px;
}

.executive-month-line b {
  color: var(--text);
  font-size: 12px;
}

.executive-month-line span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.executive-month-line em {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.executive-month-table {
  min-width: 1050px;
}

.metric-stack-cell {
  min-width: 132px;
}

.metric-stack-cell strong,
.metric-stack-cell span {
  display: block;
}

.metric-stack-cell strong {
  color: var(--text);
  font-size: 13px;
}

.metric-stack-cell span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.group-opportunity-table {
  min-width: 1650px;
}

.customer-opportunity-table {
  min-width: 1450px;
}

.core-forecast-table {
  min-width: 1500px;
}

.percapita-month-table {
  min-width: 1560px;
}

/* 2026-07-03 管理者搜索与月度人均达标汇总增强 */
.customer-search-box {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.customer-search-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-search-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.customer-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.customer-search-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.customer-filter-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.percapita-status-summary {
  margin: 14px 0;
}

.percapita-summary-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 14px;
}

.percapita-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.percapita-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.percapita-summary-card-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.percapita-summary-card-head strong {
  color: var(--text);
  font-size: 14px;
}

.percapita-summary-card-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.percapita-status-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
}

.percapita-status-list.green {
  border-color: rgba(22, 163, 74, 0.25);
}

.percapita-status-list.orange {
  border-color: rgba(234, 88, 12, 0.25);
}

.percapita-status-list.red {
  border-color: rgba(220, 38, 38, 0.25);
}

.percapita-status-title,
.percapita-status-row,
.percapita-pending-list div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.percapita-status-title {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.percapita-status-row,
.percapita-status-empty {
  border-top: 1px solid var(--line);
  font-size: 12px;
  padding: 8px 10px;
}

.percapita-status-row span {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.percapita-status-row strong {
  color: var(--text);
  white-space: nowrap;
}

.percapita-status-empty {
  color: var(--muted);
}

.percapita-pending-list {
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  padding: 8px 10px;
}

.percapita-pending-list summary {
  cursor: pointer;
  font-weight: 800;
}

.percapita-pending-list div {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 6px;
}

.percapita-pending-list strong {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .percapita-summary-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 720px) {
  .customer-search-box {
    grid-template-columns: 1fr;
  }

  .customer-search-actions {
    justify-content: flex-start;
  }

  .percapita-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* V9.0：人均产出页平台汇总/单平台对比 */
.platform-percapita-card {
  margin: 14px 0;
  padding: 18px;
}

.platform-percapita-head h3,
.platform-percapita-head p {
  margin: 0;
}

.platform-percapita-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.platform-percapita-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.platform-percapita-item {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.platform-percapita-item.summary {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.platform-percapita-item-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.platform-percapita-item-head strong,
.platform-percapita-item-head span {
  display: block;
}

.platform-percapita-item-head strong {
  color: var(--text);
  font-size: 16px;
}

.platform-percapita-item-head span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.platform-percapita-months {
  display: grid;
  gap: 10px;
}

.platform-percapita-month {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.platform-percapita-month h4 {
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  margin: 0;
  padding: 9px 10px;
}

.platform-percapita-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-percapita-stat {
  border-top: 1px solid var(--line);
  padding: 9px 10px;
}

.platform-percapita-stat:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.platform-percapita-stat span,
.platform-percapita-stat strong,
.platform-percapita-stat em {
  display: block;
}

.platform-percapita-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.platform-percapita-stat strong {
  color: var(--text);
  font-size: 17px;
  margin-top: 4px;
}

.platform-percapita-stat em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  margin-top: 2px;
}

.platform-percapita-total {
  background: #0f172a;
  border-radius: 14px;
  color: #fff;
  margin-top: 12px;
  padding: 12px;
}

.platform-percapita-total span,
.platform-percapita-total strong,
.platform-percapita-total em {
  display: block;
}

.platform-percapita-total span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.platform-percapita-total strong {
  font-size: 24px;
  margin-top: 4px;
}

.platform-percapita-total em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

@media (max-width: 1120px) {
  .platform-percapita-grid {
    grid-template-columns: 1fr;
  }
}


/* V10_DASHBOARD_V142：首页P0测试版样式 */
.v10-dashboard-shell{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.v10-dashboard-main{display:grid;gap:16px}.v10-right-rail{display:grid;gap:14px;position:sticky;top:14px}.v10-section{border:1px solid var(--line);box-shadow:var(--shadow)}.v10-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.v10-metric-card{border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);padding:14px;display:grid;gap:8px}.v10-metric-card span{color:var(--muted);font-size:13px}.v10-metric-card strong{font-size:24px;color:var(--text)}.v10-metric-card small{color:var(--muted);line-height:1.45}.v10-hero-efficiency{margin:12px 0;padding:16px;border-radius:18px;background:#0f172a;color:white;display:flex;justify-content:space-between;gap:16px;align-items:center}.v10-hero-efficiency strong{font-size:30px}.v10-hero-efficiency span{color:#dbeafe}.v10-table th,.v10-table td{white-space:nowrap}.v10-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.v10-source-list{display:grid;gap:10px}.v10-source-list div{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px}.v10-source-list small{color:var(--muted)}.v10-people-box{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--panel-soft)}.v10-process ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding-left:0;counter-reset:step}.v10-process li{list-style:none;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--panel-soft)}.v10-rail-card{padding:14px}.v10-rail-card ul{padding-left:18px;color:var(--muted);line-height:1.8}.v10-action-item{display:flex;gap:10px;border-bottom:1px solid var(--line);padding:10px 0}.v10-action-item:last-child{border-bottom:0}.v10-action-item p{margin:4px 0 0;color:var(--muted);font-size:12px}@media(max-width:1100px){.v10-dashboard-shell{grid-template-columns:1fr}.v10-right-rail{position:static}.v10-metric-grid,.v10-two-col,.v10-process ol{grid-template-columns:1fr}}


/* V10_DEMO_V142_SCOPED_BASELINE */
.demo-v142{
  --bg:#F5F7FB;--surface:#FFFFFF;--soft:#F8FAFC;--line:#DCE3EE;--line2:#C8D2E0;
  --text:#334155;--strong:#14213A;--muted:#64748B;
  --blue:#2563EB;--blue-bg:#EFF6FF;--green:#0F9F6E;--green-bg:#EAF8F2;
  --amber:#D97706;--amber-bg:#FFF7E8;--red:#DC3E48;--red-bg:#FFF0F1;
  --info:#4F46E5;--info-bg:#EEF2FF;
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;
  --r1:6px;--r2:10px;--r3:12px;--pill:999px;
  --fs-display:28px;--fs-page:22px;--fs-section:17px;--fs-card:14px;
  --fs-body:14px;--fs-small:12px;--fs-caption:11px;
}
.demo-v142 *{box-sizing:border-box}
.demo-v142 html,.demo-v142{margin:0;min-width:1440px}
.demo-v142{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text);font-size:var(--fs-body);line-height:1.55}
.demo-v142 .header{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 24px;display:flex;align-items:center}
.demo-v142 .brand{display:flex;align-items:center;gap:12px}
.demo-v142 .logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#1D4ED8,#4E83FF);display:grid;place-items:center;color:#fff;font-weight:800}
.demo-v142 .brand-meta{font-size:11px;color:var(--muted)}
.demo-v142 .brand-title{font-size:22px;font-weight:800;color:var(--strong);line-height:1.25}
.demo-v142 .version{font-size:11px;padding:5px 9px;border-radius:999px;background:var(--blue-bg);color:var(--blue);margin-left:8px}
.demo-v142 .nav{height:44px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:4px;padding:0 24px;white-space:nowrap}
.demo-v142 .nav span{padding:8px 12px;border-radius:6px;color:var(--muted)}
.demo-v142 .nav .active{background:var(--blue);color:#fff;font-weight:700}
.demo-v142 .page{padding:16px;max-width:1960px;margin:0 auto}
.demo-v142 .toolbar{display:flex;align-items:end;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:16px}
.demo-v142 .field{min-width:148px}
.demo-v142 .field label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.demo-v142 .control{height:38px;border:1px solid var(--line2);border-radius:6px;padding:0 12px;display:flex;align-items:center;background:#fff}
.demo-v142 .spacer{flex:1}
.demo-v142 .btn{height:38px;padding:0 14px;border:1px solid var(--line2);border-radius:6px;background:#fff;font-weight:700;color:var(--text);cursor:pointer}
.demo-v142 .btn.active{background:var(--strong);color:#fff;border-color:var(--strong)}
.demo-v142 .btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.demo-v142 .layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}
.demo-v142 .panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:16px}
.demo-v142 .page-title{font-size:22px;font-weight:800;color:var(--strong);margin-bottom:4px}
.demo-v142 .section-title{font-size:17px;font-weight:800;color:var(--strong);margin-bottom:4px}
.demo-v142 .help{font-size:12px;color:var(--muted)}
.demo-v142 .chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.demo-v142 .chip.green{background:var(--green-bg);color:var(--green)}
.demo-v142 .chip.amber{background:var(--amber-bg);color:var(--amber)}
.demo-v142 .chip.red{background:var(--red-bg);color:var(--red)}
.demo-v142 .chip.blue{background:var(--blue-bg);color:var(--blue)}
.demo-v142 .chip.info{background:var(--info-bg);color:var(--info)}
.demo-v142 .kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:12px}
.demo-v142 .kpi{border:1px solid var(--line);border-radius:10px;padding:12px;min-height:108px;background:linear-gradient(180deg,#fff,#FBFDFF)}
.demo-v142 .kpi-label{font-size:11px;color:var(--muted)}
.demo-v142 .kpi-value{font-size:28px;font-weight:850;color:var(--strong);margin-top:6px;line-height:1.1}
.demo-v142 .kpi-foot{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.5}
.demo-v142 .source-people{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}
.demo-v142 .sourcebar{height:20px;border-radius:999px;overflow:hidden;display:flex;margin:12px 0}
.demo-v142 .sourcebar i:nth-child(1){background:#2563EB}
.demo-v142 .sourcebar i:nth-child(2){background:#84A9FF}
.demo-v142 .sourcebar i:nth-child(3){background:#C7D7FF}
.demo-v142 .source-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.demo-v142 .source-card,.demo-v142 .people-card{border:1px solid var(--line);border-radius:10px;padding:12px}
.demo-v142 .source-card b{display:block;font-size:17px;color:var(--strong);margin-top:6px}
.demo-v142 .month-split{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.demo-v142 .month-split span{background:var(--soft);border-radius:6px;padding:6px 8px;font-size:11px;color:var(--muted)}
.demo-v142 .people-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}
.demo-v142 .people-card strong{display:block;font-size:22px;color:var(--strong);margin-top:5px}
.demo-v142 .demo-note{display:none;background:#FFF7E8;border:1px solid #F1D49E;border-radius:8px;padding:9px 11px;color:#75511B;font-size:12px;margin:12px 0}
.demo-v142 .table-wrap{border:1px solid var(--line);border-radius:10px;overflow:auto;margin-top:12px}
.demo-v142 .matrix{min-width:1540px;width:100%;border-collapse:collapse;table-layout:fixed}
.demo-v142 .matrix th{height:40px;background:var(--soft);color:var(--muted);font-size:11px;text-align:left;padding:0 9px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
.demo-v142 .matrix td{padding:10px 9px;vertical-align:top;border-bottom:1px solid var(--line);border-right:1px solid var(--line);font-size:12px;line-height:1.5}
.demo-v142 .matrix th:last-child,.demo-v142 .matrix td:last-child{border-right:none}
.demo-v142 .matrix tr:last-child td{border-bottom:none}
.demo-v142 .matrix .risk-row{background:#FFF9F9}
.demo-v142 .matrix .observe-row{background:#FFFDF7}
.demo-v142 .matrix .noncore-row{background:#FAFBFD}
.demo-v142 .group-name{font-size:13px;font-weight:800;color:var(--strong);margin-bottom:6px}
.demo-v142 .metric-main{font-size:15px;font-weight:800;color:var(--strong)}
.demo-v142 .metric-lines{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.55}
.demo-v142 .conclusion{font-size:11px;line-height:1.58}
.demo-v142 .conclusion b{display:block;color:var(--strong);font-size:12px;margin-bottom:4px}
.demo-v142 .action-box{font-size:11px;line-height:1.55}
.demo-v142 .action-box b{display:block;font-size:12px;color:var(--strong);margin-bottom:4px}
.demo-v142 .priority{margin-bottom:6px}
.demo-v142 .pending{color:var(--muted);display:flex;min-height:64px;flex-direction:column;justify-content:center}
.demo-v142 .pending b{font-size:12px;color:var(--muted)}
.demo-v142 .slash{font-size:20px;color:#94A3B8;text-align:center;padding-top:18px}
.demo-v142 .side-card{border:1px solid var(--line);border-radius:10px;padding:12px;margin-top:8px}
.demo-v142 .side-card strong{display:block;color:var(--strong);font-size:13px;margin-bottom:4px}
.demo-v142 .side-card p{margin:0;font-size:11px;color:var(--muted);line-height:1.55}
.demo-v142 .action-summary{border-left:4px solid var(--amber);background:#FFFAF0}
.demo-v142 .progress{height:8px;background:#EDF1F7;border-radius:999px;overflow:hidden;margin-top:5px}
.demo-v142 .progress i{display:block;height:100%;background:var(--blue)}
.demo-v142 .stagebar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.demo-v142 .stage{border:1px solid var(--line);border-radius:10px;padding:12px;min-height:76px}
.demo-v142 .stage.done{background:var(--green-bg);border-color:#BEE5D2}
.demo-v142 .stage.current{background:var(--blue-bg);border-color:#C6D6FF}
.demo-v142 .stage-no{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#E8EDF5;margin-right:6px;font-size:11px;font-weight:800}
.demo-v142 .stage.done .stage-no{background:var(--green);color:#fff}
.demo-v142 .stage.current .stage-no{background:var(--blue);color:#fff}
.demo-v142 .stage p{font-size:11px;color:var(--muted);margin:6px 0 0}
.demo-v142 .footer-note{text-align:center;color:var(--muted);font-size:11px;padding:4px 0 18px}
@media(max-width:1560px){.demo-v142 .layout{grid-template-columns:1fr}
.demo-v142 .side{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.demo-v142 .side .panel{margin-bottom:0}}
.demo-v142 .eff-hero{background:linear-gradient(135deg,#F8FBFF 0%,#EEF4FF 100%);border:1px solid #C9D8FF;position:relative;overflow:hidden}
.demo-v142 .eff-hero:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-120px;top:-150px;background:rgba(37,99,235,.07)}
.demo-v142 .eff-head{display:flex;align-items:flex-start;gap:20px;position:relative;z-index:1}
.demo-v142 .eff-main{min-width:260px;padding-right:20px;border-right:1px solid #D6E1FB}
.demo-v142 .eff-main .big{font-size:46px;line-height:1;font-weight:900;color:var(--strong);margin:8px 0 10px}
.demo-v142 .eff-main .unit{font-size:16px;font-weight:700;color:var(--muted);margin-left:4px}
.demo-v142 .eff-main .monthline{font-size:12px;color:var(--muted);line-height:1.7}
.demo-v142 .eff-decision{flex:1;display:grid;grid-template-columns:1.15fr .85fr;gap:12px}
.demo-v142 .decision-card{border:1px solid #D6E1FB;border-radius:10px;background:rgba(255,255,255,.85);padding:12px}
.demo-v142 .decision-card strong{display:block;font-size:13px;color:var(--strong);margin-bottom:5px}
.demo-v142 .decision-card p{margin:0;font-size:11px;color:var(--muted);line-height:1.6}
.demo-v142 .eff-rank{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:14px;position:relative;z-index:1}
.demo-v142 .eff-rank-card{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;min-height:104px}
.demo-v142 .eff-rank-card.risk{border-color:#F0C0C4;background:#FFF8F8}
.demo-v142 .eff-rank-card.observe{border-color:#F2D49B;background:#FFFDF7}
.demo-v142 .eff-rank-card.good{border-color:#BEE4D2;background:#F9FFFC}
.demo-v142 .eff-rank-card .name{font-size:12px;font-weight:800;color:var(--strong);margin-bottom:6px}
.demo-v142 .eff-rank-card .score{font-size:24px;font-weight:900;color:var(--strong);line-height:1.1}
.demo-v142 .eff-rank-card .sub{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.45}
.demo-v142 .eff-scale{margin-top:14px;position:relative;z-index:1}
.demo-v142 .scale-bar{height:12px;border-radius:999px;overflow:hidden;display:grid;grid-template-columns:4fr 1fr 3fr;background:#EDF1F7}
.demo-v142 .scale-bar i:nth-child(1){background:#F7B8BD}
.demo-v142 .scale-bar i:nth-child(2){background:#F4D291}
.demo-v142 .scale-bar i:nth-child(3){background:#A8D8C2}
.demo-v142 .scale-labels{display:grid;grid-template-columns:4fr 1fr 3fr;font-size:10px;color:var(--muted);margin-top:4px}
.demo-v142 .conclusion-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.demo-v142 .conclusion-list li{padding-left:2px;font-size:11px;line-height:1.55;color:var(--text)}
.demo-v142 .conclusion-list li::marker{font-weight:800;color:var(--blue)}
.demo-v142 .conclusion-list b{color:var(--strong);font-size:11px}

/* V10.0 demo baseline restoration: route-scoped homepage shell */
body[data-route="dashboard"] .topbar{display:block}
body[data-route="dashboard"] .workspace{display:block;padding:0;background:#F5F7FB}
body[data-route="dashboard"] .content-pane{max-width:none;width:100%;padding:0;background:transparent;border:0;box-shadow:none}
body[data-route="dashboard"] .content-pane>.control-strip{display:none}
body[data-route="dashboard"] .workspace>.right-rail{display:none}
body[data-route="dashboard"] .view-root{padding:0;margin:0}
body[data-route="dashboard"] .app-shell{min-height:100vh;background:#F5F7FB}
.demo-v142{min-height:100vh;background:#F5F7FB;color:#1F2937;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif}
.demo-v142 .nav-span{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0;text-align:left}
.demo-v142 .nav .nav-span{padding:13px 10px 12px;border-bottom:3px solid transparent;color:#667085;white-space:nowrap}
.demo-v142 .nav .nav-span.active{color:#2563EB;border-bottom-color:#2563EB;font-weight:800}
.demo-v142 .small-kpi{font-size:22px}
.demo-v142 .decision-card b{color:var(--strong)}
.demo-v142 .matrix th,.demo-v142 .matrix td{white-space:normal}
.demo-v142 .matrix .chip{white-space:nowrap}
.demo-v142 .eff-rank-card.good{border-color:#BEE4D2;background:#F9FFFC}
@media(max-width:900px){.demo-v142 .kpis,.demo-v142 .source-cards,.demo-v142 .people-grid,.demo-v142 .stagebar,.demo-v142 .eff-rank,.demo-v142 .eff-decision{grid-template-columns:1fr}.demo-v142 .source-people,.demo-v142 .eff-head{display:block}.demo-v142 .eff-main{border-right:0}.demo-v142 .toolbar{align-items:stretch}.demo-v142 .btn{width:100%}}


/* V10_UNIFIED_SHELL_V142: 首页和子页面统一顶部/导航/版本 */
.topbar{background:#fff;border-bottom:1px solid var(--line);box-shadow:none}
.brand-block{align-items:center;gap:12px;padding:14px 24px 10px}
.brand-copy h1{font-size:22px;font-weight:800;color:var(--text);letter-spacing:0;line-height:1.25}
.brand-eyebrow{font-size:11px;color:var(--muted);font-weight:500}
.version-pill{background:var(--blue-soft);color:var(--blue);border:1px solid rgba(47,106,255,.18);font-size:11px;font-weight:800;white-space:nowrap}
.main-nav{background:#fff;border-top:0;border-bottom:1px solid var(--line);padding:0 24px;gap:4px;overflow-x:auto}
.nav-item{border-radius:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font-size:14px;font-weight:700;padding:13px 10px 12px;white-space:nowrap}
.nav-item.active{background:transparent;color:var(--blue);border-bottom-color:var(--blue);box-shadow:none}
body[data-route="dashboard"] .demo-v142{min-width:0}
body[data-route="dashboard"] .demo-v142 .page{padding:16px;max-width:1960px;margin:0 auto}
body[data-route="dashboard"] .demo-v142.unified-shell{padding-top:0}
