:root {
  --bg: #f3f1ea;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --line: rgba(25, 45, 38, 0.12);
  --text: #173128;
  --muted: #5a6f66;
  --accent: #1f8f5f;
  --accent-soft: rgba(31, 143, 95, 0.12);
  --warn: #b96a18;
  --shadow: 0 18px 40px rgba(20, 41, 33, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(68, 145, 95, 0.18), transparent 28%),
    linear-gradient(180deg, #f4f2ec 0%, #ece8dd 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, sans-serif;
}

body.diagnostics-open {
  overflow: hidden;
}

.app-frame {
  display: grid;
  grid-template-columns: 308px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px 28px;
  border-right: 1px solid var(--line);
  background: rgba(243, 241, 234, 0.88);
  backdrop-filter: blur(12px);
}

.sidebar-brand h1,
.sidebar-kicker,
.sidebar-section-title {
  margin: 0;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 10px 12px;
  border: 1px solid rgba(25, 45, 38, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(31, 143, 95, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 244, 236, 0.72));
  box-shadow: 0 12px 24px rgba(20, 41, 33, 0.05);
}

.sidebar-brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(31, 143, 95, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(31, 143, 95, 0.16), rgba(255, 255, 255, 0.78));
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(31, 143, 95, 0.92);
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

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

.sidebar-kicker {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-brand h1 {
  margin-top: 4px;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.sidebar-nav {
  margin-top: 16px;
}

.sidebar-section + .sidebar-section {
  margin-top: 16px;
}

.sidebar-section-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-links {
  display: grid;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.4);
}

.sidebar-link:hover,
.sidebar-link.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.sidebar-link em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.sidebar-subnav {
  display: grid;
  gap: 5px;
  margin: -2px 0 4px 14px;
  padding-left: 10px;
  border-left: 1px dashed rgba(25, 45, 38, 0.16);
}

.sidebar-subnav-nested {
  margin-left: 12px;
}

.sidebar-link-child,
.sidebar-link-grandchild {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 0.86rem;
}

.sidebar-link-grandchild {
  padding: 7px 9px;
  font-size: 0.8rem;
}

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

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 12px 18px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(25, 45, 38, 0.1);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 242, 0.92));
  box-shadow: var(--shadow);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 4px;
}

.dashboard-hero-main,
.hero-anchors {
  border: 1px solid rgba(25, 45, 38, 0.1);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 242, 0.92));
  box-shadow: var(--shadow);
}

.dashboard-hero-main {
  padding: 6px 9px 7px;
}

.dashboard-hero-subtitle {
  max-width: 720px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.28;
}

.dashboard-status-strip {
  display: grid;
  grid-template-columns: max-content;
  gap: 4px;
  margin-top: 4px;
}

.dashboard-status-card {
  padding: 4px 6px 4px;
  border: 1px solid rgba(25, 45, 38, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.dashboard-status-card span,
.hero-anchor-list dt,
.dashboard-reading-list span {
  display: block;
}

.dashboard-status-card span {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.dashboard-status-card strong {
  display: block;
  margin-top: 1px;
  font-size: 0.74rem;
  letter-spacing: -0.03em;
}

.hero-anchors {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
}

.hero-anchors-head h2,
.hero-anchors-head p,
.dashboard-reading-list h3,
.dashboard-reading-list p {
  margin: 0;
}

.hero-anchors-head h2 {
  font-size: 0.96rem;
}

.hero-anchors-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.32;
}

.hero-anchor-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}

.hero-anchor-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.hero-anchor-list dt {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.hero-anchor-list dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: right;
}

.hero-intro {
  position: relative;
  min-width: 0;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.eyebrow {
  margin: 0 0 1px;
  color: var(--accent);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(0.94rem, 1.2vw, 1.22rem);
  line-height: 1;
}

.hero-inline-info {
  position: relative;
  flex: 0 0 auto;
}

.hero-inline-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.hero-inline-trigger::-webkit-details-marker {
  display: none;
}

.hero-inline-trigger:hover,
.hero-inline-info[open] .hero-inline-trigger {
  border-color: rgba(31, 143, 95, 0.18);
  background: rgba(31, 143, 95, 0.1);
  color: var(--text);
}

.hero-inline-trigger svg {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-inline-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  width: min(360px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(20, 41, 33, 0.12);
  backdrop-filter: blur(12px);
}

.hero-inline-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.hero-inline-meta div {
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-inline-meta dd {
  font-size: 0.8rem;
  line-height: 1.35;
}

.hero-title-side {
  display: flex;
  align-items: center;
  gap: 6px;
}

.green-framework-info .hero-inline-trigger {
  width: auto;
  height: auto;
  padding: 2px 8px;
  border-radius: 999px;
}

.green-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  height: 22px;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.12);
  color: rgba(31, 143, 95, 0.92);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.green-framework-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.green-framework-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.green-framework-list li strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(31, 143, 95, 0.1);
  color: rgba(31, 143, 95, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.green-framework-list li em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}

.green-framework-list li.is-building span {
  color: var(--muted);
}

.green-framework-anchor {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  gap: 3px;
}

.green-framework-anchor li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
}

.green-framework-anchor li strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(31, 143, 95, 0.1);
  color: rgba(31, 143, 95, 0.92);
  font-size: 0.64rem;
  font-weight: 700;
  flex-shrink: 0;
}

.green-framework-anchor li em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
}

.green-framework-anchor li.is-building span {
  color: var(--muted);
}

.period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.period-tab {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.66rem;
}

.period-tab.is-active,
.period-tab:hover {
  color: var(--text);
  background: rgba(31, 143, 95, 0.12);
  border-color: rgba(31, 143, 95, 0.2);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 360px;
  margin: 0;
}

.hero-meta div,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.hero-meta div {
  padding: 12px 14px;
}

.hero-meta-wide {
  grid-column: 1 / -1;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
}

dd {
  margin: 5px 0 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

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

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

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

.cards-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cards-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cards-divider {
  margin: 10px 0;
  border: 0;
  border-top: 1px dashed rgba(25, 45, 38, 0.12);
}

.cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 8px;
}

.cards-row .metric-card {
  flex: 1 1 0;
  min-width: 0;
}

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

.executive-summary-grid .metric-card {
  min-height: 104px;
  padding: 12px 12px 10px;
  overflow: hidden;
}

.executive-summary-grid .metric-label {
  min-height: 2.4em;
  font-size: 0.76rem;
  line-height: 1.2;
}

.executive-summary-grid .metric-value-row {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  align-items: end;
  column-gap: 4px;
  margin-top: 7px;
}

.executive-summary-grid .metric-value {
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 0.96;
}

.executive-summary-grid .metric-unit {
  font-size: 0.66rem;
  line-height: 1.05;
}

.executive-summary-grid .metric-delta {
  display: -webkit-box;
  margin-top: 8px;
  font-size: 0.68rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cards-vdivider {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 8px 0;
  border-left: 1px dashed rgba(25, 45, 38, 0.12);
}

.dashboard-summary-panel {
  margin-top: 8px;
}

.dashboard-summary-head {
  margin-bottom: 6px;
}

.metric-card {
  padding: 9px 10px 8px;
  box-shadow: var(--shadow);
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 6px;
}

.metric-card-spotlight {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 237, 0.88)),
    radial-gradient(circle at top right, rgba(31, 143, 95, 0.08), transparent 42%);
}

.metric-label,
.metric-unit,
.metric-delta {
  margin: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.metric-value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-unit {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.metric-delta {
  margin-top: 5px;
  color: var(--warn);
  font-size: 0.67rem;
  line-height: 1.25;
}

.metric-delta-up {
  color: var(--accent);
}

.metric-delta-down {
  color: #ab4c3c;
}

.panel-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.panel-tag-row h2 {
  margin: 0;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.panel-tag-e1 {
  background: rgba(31, 143, 95, 0.92);
}

.panel-tag-e2 {
  background: rgba(59, 113, 202, 0.92);
}

.panel-tag-s1 {
  background: rgba(31, 143, 95, 0.92);
}

.panel-tag-s2 {
  background: rgba(59, 113, 202, 0.92);
}

.panel-tag-s3 {
  background: rgba(185, 106, 24, 0.92);
}

.panel-tag-s4 {
  background: rgba(116, 82, 44, 0.92);
}

.metric-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
}

.metric-tag-e1 {
  background: rgba(31, 143, 95, 0.85);
}

.metric-tag-e2 {
  background: rgba(59, 113, 202, 0.85);
}

.metric-card-retention {
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(254, 246, 230, 0.92)),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.10), transparent 42%);
  border-color: rgba(217, 119, 6, 0.25);
}

.metric-card-retention .metric-value {
  color: #b45309;
}

.metric-card-chart {
  position: relative;
}

.mini-chart {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  height: 40px;
}

.map-chart {
  height: 340px;
}

.map-filter-bar {
  display: flex;
  gap: 6px;
  margin: 6px 0 4px;
}

.map-filter {
  padding: 3px 10px;
  font-size: 0.72rem;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fafc, #edf2f7);
  color: #355266;
  cursor: pointer;
  transition: all 160ms ease;
}

.map-filter.is-active {
  background: linear-gradient(180deg, #0f766e, #115e59);
  color: #fff;
  border-color: #0f766e;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
}

.chart-group-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chart-group-e1 {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.chart-group-e2 {
  background: rgba(31, 143, 95, 0.14);
  color: #1f8f5f;
}

.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.grid-two-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 10px 11px;
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.panel-head h2,
.panel-head p {
  margin: 0;
}

.panel-head h2 {
  font-size: 0.96rem;
}

.panel-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.28;
}

.metric-scope-note {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(185, 106, 24, 0.09);
  color: #8b5a16;
  font-size: 0.68rem;
  line-height: 1.2;
}

.chart {
  height: 190px;
  margin-top: 6px;
}

.chart-tall {
  height: 340px;
}

.chart-with-side-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 198px;
  gap: 10px;
  align-items: stretch;
}

.chart-with-side-legend .chart {
  min-width: 0;
}

.chart-side-legend {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.legend-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10px;
  color: #5b7267;
  margin-left: auto;
}

.legend-matrix th,
.legend-matrix td {
  padding: 3px 4px;
  border-bottom: 1px solid rgba(125, 154, 139, 0.12);
  text-align: left;
  vertical-align: middle;
}

.legend-matrix th {
  font-weight: 600;
  color: #789085;
  white-space: nowrap;
  cursor: pointer;
}

.legend-matrix td:first-child {
  width: 48px;
  color: #4c6559;
  font-weight: 600;
  white-space: nowrap;
}

.legend-matrix td[data-series-name] {
  cursor: pointer;
  user-select: none;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(246, 249, 247, 0.92);
  border: 1px solid rgba(125, 154, 139, 0.16);
  color: #476055;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.legend-head-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(248, 250, 249, 0.95);
  border: 1px solid rgba(125, 154, 139, 0.12);
  color: #7a9086;
  transition: all 0.15s ease;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.legend-matrix td[data-selected="false"] .legend-chip {
  opacity: 0.42;
  background: rgba(247, 249, 248, 0.9);
  color: #90a39a;
}

.legend-matrix th[data-selected="false"] .legend-head-chip {
  opacity: 0.5;
  color: #9bac9f;
}

.legend-matrix td[data-series-name]:hover .legend-chip {
  border-color: rgba(54, 120, 82, 0.38);
  transform: translateY(-1px);
}

.legend-matrix th[data-col-index]:hover .legend-head-chip {
  border-color: rgba(54, 120, 82, 0.24);
  color: #517063;
  transform: translateY(-1px);
}

.chart-compact {
  height: 286px;
}

.chart-card-wall {
  height: auto;
  min-height: 286px;
}

.chart-empty-state {
  display: grid;
  place-items: center;
  min-height: 286px;
  border: 1px dashed rgba(25, 45, 38, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(247,244,236,0.72));
  color: #72867b;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.chart-profit-wide {
  height: 328px;
}

#supply-province-map.chart-compact {
  height: 318px;
}

.map-toggle-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.map-toggle-button {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.map-toggle-button.is-active {
  border-color: rgba(31, 143, 95, 0.22);
  background: rgba(31, 143, 95, 0.12);
  color: var(--text);
}

.bubble-scatter-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  margin-bottom: 4px;
}

.bubble-scatter-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.bubble-scatter-toolbar select {
  min-width: 180px;
  height: 30px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

#supply-purchase-order-bubble.chart-compact {
  height: 360px;
}

.card-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.card-wall-item {
  padding: 10px 10px 9px;
  border: 1px solid rgba(25, 45, 38, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 236, 0.88));
  box-shadow: 0 8px 18px rgba(20, 41, 33, 0.05);
}

.card-wall-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-wall-top h3,
.card-wall-subtitle,
.card-wall-meta {
  margin: 0;
}

.card-wall-top h3 {
  font-size: 0.8rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.card-wall-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.1);
  color: #176f49;
  font-size: 0.66rem;
  font-weight: 600;
}

.card-wall-item.tone-success,
.card-wall-badge.tone-success {
  background: rgba(31, 143, 95, 0.1);
  color: #176f49;
}

.card-wall-item.tone-danger,
.card-wall-badge.tone-danger {
  background: rgba(214, 77, 55, 0.1);
  color: #af4c3a;
}

.card-wall-item.tone-warning,
.card-wall-badge.tone-warning {
  background: rgba(185, 106, 24, 0.1);
  color: #a96314;
}

.card-wall-item.tone-muted,
.card-wall-badge.tone-muted {
  background: rgba(91, 103, 98, 0.1);
  color: #566560;
}

.card-wall-item.tone-info,
.card-wall-badge.tone-info {
  background: rgba(48, 109, 166, 0.1);
  color: #2b638f;
}

.card-wall-subtitle {
  margin-top: 5px;
  color: #60746a;
  font-size: 0.7rem;
}

.card-wall-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
  color: #42554d;
  font-size: 0.7rem;
  line-height: 1.25;
}

.card-wall-meta li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
}

.card-wall-meta li span {
  color: #6f8177;
}

.card-wall-meta li strong {
  color: #22342c;
  font-weight: 600;
}

.card-wall-meta-full {
  grid-template-columns: 1fr !important;
}

.placeholder-copy {
  color: var(--muted);
  line-height: 1.75;
}

.alerts-panel {
  margin-top: 8px;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 8px;
  margin-top: 8px;
}

.dashboard-reading-panel {
  margin-top: 8px;
}

.dashboard-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dashboard-focus-card {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-focus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(24, 45, 38, 0.08);
}

.dashboard-focus-card.focus-signing {
  border-color: rgba(31, 143, 95, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 244, 0.92)),
    radial-gradient(circle at top right, rgba(31, 143, 95, 0.08), transparent 48%);
}

.dashboard-focus-card.focus-turnover {
  border-color: rgba(59, 113, 202, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 252, 0.92)),
    radial-gradient(circle at top right, rgba(59, 113, 202, 0.08), transparent 48%);
}

.dashboard-focus-card.focus-concentration {
  border-color: rgba(180, 83, 9, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(253, 247, 238, 0.92)),
    radial-gradient(circle at top right, rgba(180, 83, 9, 0.08), transparent 48%);
}

.dashboard-focus-card.focus-cash {
  border-color: rgba(171, 76, 60, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(252, 242, 240, 0.92)),
    radial-gradient(circle at top right, rgba(171, 76, 60, 0.08), transparent 48%);
}

.dashboard-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-focus-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-focus-head h3,
.dashboard-focus-head span,
.dashboard-focus-note {
  margin: 0;
}

.dashboard-focus-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-focus-status.is-good {
  background: rgba(31, 143, 95, 0.12);
  color: #1f6d4d;
}

.dashboard-focus-status.is-watch {
  background: rgba(180, 83, 9, 0.12);
  color: #a16207;
}

.dashboard-focus-status.is-risk {
  background: rgba(171, 76, 60, 0.12);
  color: #9f3f31;
}

.dashboard-focus-head h3 {
  color: #22342c;
  font-size: 0.9rem;
}

.dashboard-focus-head span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-focus-value {
  margin-top: 10px;
}

.dashboard-focus-note {
  margin-top: 8px;
  color: #5d7067;
  font-size: 0.72rem;
  line-height: 1.4;
}

.dashboard-focus-trend {
  margin: 8px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
}

.dashboard-focus-trend.is-good {
  color: #1f6d4d;
}

.dashboard-focus-trend.is-risk {
  color: #9f3f31;
}

.dashboard-focus-trend.is-flat {
  color: #6b7d74;
}

.dashboard-focus-details {
  margin-top: 10px;
  border-top: 1px dashed rgba(34, 52, 44, 0.12);
  padding-top: 8px;
}

.dashboard-focus-details summary {
  cursor: pointer;
  color: #355448;
  font-size: 0.7rem;
  font-weight: 700;
  list-style: none;
}

.dashboard-focus-details summary::-webkit-details-marker {
  display: none;
}

.dashboard-focus-detail-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.dashboard-focus-detail-list p {
  margin: 0;
  color: #5d7067;
  font-size: 0.7rem;
  line-height: 1.45;
}

.dashboard-focus-detail-list strong {
  color: #22342c;
}

.dashboard-topic-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 237, 0.9)),
    radial-gradient(circle at top right, rgba(31, 143, 95, 0.08), transparent 48%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(24, 45, 38, 0.08);
  border-color: rgba(31, 143, 95, 0.28);
}

.dashboard-topic-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(31, 143, 95, 0.12);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dashboard-topic-body h3,
.dashboard-topic-body p,
.dashboard-topic-body span {
  margin: 0;
}

.dashboard-topic-body h3 {
  color: #22342c;
  font-size: 0.92rem;
}

.dashboard-topic-body p {
  margin-top: 6px;
  color: #5d7067;
  font-size: 0.72rem;
  line-height: 1.45;
}

.dashboard-topic-body span {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-reading-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.dashboard-reading-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-reading-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 10px;
  background: rgba(31, 143, 95, 0.1);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.dashboard-reading-list span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.28;
}

.section-panel {
  margin-top: 16px;
}

.thematic-card-group + .thematic-card-group {
  margin-top: 10px;
}

.thematic-card-group-title {
  margin: 0 0 4px;
  color: #4d6459;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-panel.section-tone-supplier .thematic-card-group-title {
  color: #48617f;
}

.weekly-hero {
  margin-bottom: 0;
}

.weekly-status-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weekly-anchors {
  min-width: 290px;
  margin-top: 0;
}

.hero-anchor-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.hero-anchor-nav a {
  display: block;
  padding: 5px 7px;
  border: 1px solid rgba(25, 45, 38, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-decoration: none;
  font-size: 0.68rem;
  line-height: 1.1;
}

.hero-anchor-nav a:hover {
  border-color: rgba(31, 143, 95, 0.22);
  background: rgba(246, 252, 248, 0.96);
}

.hero-anchor-nav strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  margin-right: 4px;
}

.hero-anchor-nav span {
  vertical-align: middle;
}

.weekly-summary-panel {
  margin-top: 8px;
}

.weekly-cards {
  margin-top: 6px;
  gap: 6px;
}

.weekly-cards .metric-card {
  padding: 8px 9px 7px;
}

.weekly-cards .metric-value {
  font-size: 0.94rem;
}

.weekly-cards .metric-delta {
  min-height: 1.9em;
  font-size: 0.64rem;
}

.weekly-detail-panel {
  margin-top: 8px;
  padding: 10px;
}

.weekly-detail-head {
  margin-bottom: 6px;
}

.weekly-detail-grid {
  margin-top: 0;
  gap: 8px;
}

.weekly-events {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.weekly-event-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.weekly-event-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.weekly-event-card h3,
.weekly-event-card p {
  margin: 0;
}

.weekly-event-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.trend-peak-grid,
.trend-signal-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.trend-peak-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trend-peak-card,
.trend-signal-card {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.trend-peak-card h3,
.trend-peak-card p,
.trend-peak-card span,
.trend-signal-card h3,
.trend-signal-card p {
  margin: 0;
}

.trend-peak-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.trend-peak-card h3 {
  font-size: 1.18rem;
}

.trend-peak-card p {
  margin-top: 8px;
  font-size: 0.96rem;
}

.trend-peak-card span,
.trend-signal-card p {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.trend-signal-card h3 {
  font-size: 0.95rem;
}

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

.detail-table-wrap {
  margin-top: 8px;
  overflow: auto;
}

.thematic-grid {
  margin-top: 8px;
}

.thematic-span-full {
  grid-column: 1 / -1;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.detail-table th,
.detail-table td {
  padding: 7px 7px;
  border-bottom: 1px solid rgba(20, 41, 33, 0.08);
  text-align: left;
  white-space: nowrap;
}

.detail-table th {
  color: var(--muted);
  font-weight: 600;
}

.alerts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.alert-card {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.alert-card h3,
.alert-card p {
  margin: 0;
}

.alert-card p {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.28;
  font-size: 0.72rem;
}

.alert-high {
  border-color: rgba(171, 76, 60, 0.26);
  background: rgba(255, 244, 241, 0.92);
}

.alert-medium {
  border-color: rgba(185, 106, 24, 0.24);
  background: rgba(255, 249, 241, 0.92);
}

.alert-low {
  border-color: rgba(31, 143, 95, 0.22);
  background: rgba(246, 252, 248, 0.92);
}

.operating-hero {
  margin-bottom: 0;
}

/* 仅保留内容导航时，去掉左侧标题栏，导航铺满整行；并吸附顶部，下滑时固定显示 */
.operating-hero-nav-only {
  grid-template-columns: minmax(0, 1fr);
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 0;
  border-radius: 0;
  padding: 6px 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.95));
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 16px rgba(25, 45, 38, 0.08);
}

.operating-hero-nav-only .hero-anchors {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.operating-hero-nav-only .hero-anchor-nav {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.operating-hero-main {
  background:
    radial-gradient(circle at top left, rgba(31, 143, 95, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 241, 0.94));
}

.operating-status-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operating-anchors .hero-anchor-nav a {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.operating-anchors .hero-anchor-nav a.anchor-without-number span {
  grid-column: 1 / -1;
}

.operating-anchors .hero-anchor-nav strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(31, 143, 95, 0.1);
  color: var(--accent);
  font-size: 0.56rem;
}

.operating-overview-panel {
  padding: 10px 10px 12px;
}

.operating-overview-cards .metric-card {
  min-height: 112px;
}

.operating-block {
  padding: 10px;
}

.operating-block-head {
  margin-bottom: 8px;
}

.operating-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operating-title-row h2 {
  margin: 0;
}

/* 标题右侧的导出超链接 */
.operating-title-row .operating-export-link {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: #18774e;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(31, 143, 95, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.operating-title-row .operating-export-link:hover {
  background: #1f8f5f;
  border-color: #1f8f5f;
  color: #fff;
}

/* 宏观走势页 hero 头部的整页导出按钮 */
.hero-export-form {
  margin: 8px 0 0;
}

/* 大盘页 hero：标题与导出按钮同一行，按钮贴右，不另起一行。 */
.dashboard-hero-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-hero-titlebar h2 {
  margin: 0;
}

.dashboard-hero-titlebar .hero-export-form {
  margin: 0 0 0 auto;
}

.hero-export-form .operating-export-link {
  display: inline-block;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #18774e;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(31, 143, 95, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.hero-export-form .operating-export-link:hover {
  background: #1f8f5f;
  border-color: #1f8f5f;
  color: #fff;
}

.operating-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.operating-tag-signing {
  background: rgba(31, 143, 95, 0.12);
  color: #18774e;
}

.operating-tag-turnover {
  background: rgba(29, 105, 170, 0.12);
  color: #1d69aa;
}

.operating-tag-inventory {
  background: rgba(185, 106, 24, 0.14);
  color: #9a5817;
}

.operating-tag-profit {
  background: rgba(118, 71, 171, 0.12);
  color: #7647ab;
}

.operating-tag-risk {
  background: rgba(182, 58, 58, 0.14);
  color: #9f2f2f;
}

.operating-subcards {
  margin-top: 6px;
}

.operating-overall-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-left: auto;
}

.operating-overall-filter label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.operating-overall-filter select,
.operating-overall-filter input,
.operating-overall-filter button {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(31, 143, 95, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
}

.operating-overall-filter select {
  min-width: 118px;
  padding: 0 10px;
}

.operating-overall-filter input {
  min-width: 136px;
  padding: 0 10px;
}

.operating-overall-filter button {
  padding: 0 16px;
  background: #1f8f5f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.operating-overall-filter button:hover {
  background: #176f4b;
  box-shadow: 0 10px 22px rgba(31, 143, 95, 0.22);
  transform: translateY(-1px);
}

/* 客户明细：筛选与导出按钮同一行 */
.operating-customer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.operating-customer-actions form {
  display: inline-flex;
  margin: 0;
}

.operating-overall-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #1f8f5f;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.operating-overall-filter-submit:hover {
  background: #176f4b;
  box-shadow: 0 10px 22px rgba(31, 143, 95, 0.22);
  transform: translateY(-1px);
}

.operating-overall-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.operating-overall-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.08);
  color: #18774e;
  font-size: 0.76rem;
  font-weight: 700;
}

.operating-breakdown-total-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.operating-breakdown-sort {
  display: inline-flex;
  margin: 0;
}

.operating-breakdown-sort button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(31, 143, 95, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #18774e;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.operating-breakdown-sort button:hover {
  border-color: rgba(31, 143, 95, 0.32);
  background: #1f8f5f;
  color: #fff;
}

.operating-dimension-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 4px 0 10px;
}

.operating-dimension-group-label {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #18774e;
}

/* 维度标签内的问号与提示：紧贴文字，提示框收窄 */
.operating-dimension-group-label .metric-definition-help {
  position: static;
  width: 13px;
  height: 13px;
  margin-left: 2px;
  font-size: 0.5rem;
}

.operating-dimension-group-label .metric-definition-popover {
  width: auto;
  max-width: 160px;
  white-space: nowrap;
}
  border: 1px solid rgba(31, 143, 95, 0.28);
  background: rgba(31, 143, 95, 0.1);
  border-radius: 6px;
}

.operating-dimension-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.operating-dimension-picker label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(31, 143, 95, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.operating-dimension-picker input {
  accent-color: #1f8f5f;
}

.operating-dimension-picker label:has(input:checked) {
  border-color: rgba(31, 143, 95, 0.28);
  background: rgba(31, 143, 95, 0.1);
  color: #18774e;
}

/* 总体-下拆：营收分布饼图（3 个并排） */
.operating-distribution-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 14px;
}

.operating-distribution-chart {
  border: 1px solid rgba(31, 143, 95, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 8px 6px;
}

.operating-distribution-chart h3 {
  margin: 0 0 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #174030;
  text-align: center;
}

.breakdown-chart-canvas {
  width: 100%;
  height: 260px;
}

@media (max-width: 1100px) {
  .operating-distribution-charts {
    grid-template-columns: 1fr;
  }
}

.operating-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
}

.operating-page-current {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(31, 143, 95, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #174030;
  font-size: 0.82rem;
  font-weight: 800;
}

/* 次要操作按钮：分页（上一页/下一页）与导出 Excel */
.operating-pagination-btn,
.operating-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(31, 143, 95, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #18774e;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease,
    transform 140ms ease, box-shadow 140ms ease;
}

.operating-pagination-btn:hover,
.operating-export-btn:hover {
  background: #1f8f5f;
  border-color: #1f8f5f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 143, 95, 0.22);
  transform: translateY(-1px);
}

.operating-pagination-btn:active,
.operating-export-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(31, 143, 95, 0.18);
}

/* 导出按钮所在的内联表单与 meta 行对齐 */
.operating-overall-meta form {
  display: inline-flex;
  margin: 0;
}

.operating-pagination form {
  display: inline-flex;
  margin: 0;
}

.operating-page-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f8f5f, #176f4b);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 143, 95, 0.22);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.operating-page-button-prev::before {
  content: "<";
  font-weight: 900;
}

.operating-page-button-next::after {
  content: ">";
  font-weight: 900;
}

.operating-page-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.76rem;
}

.operating-page-button:hover {
  box-shadow: 0 16px 30px rgba(31, 143, 95, 0.3);
  filter: saturate(1.06);
  transform: translateY(-1px);
}

[data-operating-overall-preview].is-partial-loading #section-customer-details,
[data-operating-overall-preview].is-partial-loading #section-sales-order-details {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 160ms ease;
}

[data-operating-overall-preview].is-partial-loading #section-customer-details .panel,
[data-operating-overall-preview].is-partial-loading #section-sales-order-details .panel {
  position: relative;
}

[data-operating-overall-preview].is-partial-loading #section-customer-details .panel::after,
[data-operating-overall-preview].is-partial-loading #section-sales-order-details .panel::after {
  content: "正在刷新...";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 111, 75, 0.9);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.operating-overall-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 143, 95, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.operating-overall-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.operating-overall-table th,
.operating-overall-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(31, 143, 95, 0.1);
  text-align: left;
  vertical-align: middle;
}

.operating-overall-table thead th {
  position: sticky;
  top: 0;
  background: #eef8f2;
  color: #173128;
  white-space: nowrap;
}

.operating-overall-table tbody th {
  color: #173128;
  font-weight: 400;
  white-space: nowrap;
}

.operating-overall-table .metric-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 按年表：表头（除指标列）与数字列居中对齐；指标列与行标左对齐 */
.operating-overall-yearly-table thead th,
.operating-overall-yearly-table .metric-number {
  text-align: center;
}

.operating-overall-yearly-table thead th:first-child {
  text-align: left;
}

/* 按年表/按月表三级缩进：仅指标列（th）随层级左缩进，数字列（td）不缩进、
   保持上下行数字垂直对齐；顶级行底边加重分隔四大类。 */
.operating-overall-yearly-table .operating-indent-1 th,
.operating-monthly-matrix-table .operating-indent-1 th {
  padding-left: 26px;
  color: #4a6b5c;
}

.operating-overall-yearly-table .operating-indent-2 th,
.operating-monthly-matrix-table .operating-indent-2 th {
  padding-left: 44px;
  color: #6b8378;
}

/* 按月表数字列统一居中对齐，保证上下行数字垂直对齐。 */
.operating-monthly-matrix-table .metric-number {
  text-align: center;
}

/* 宏观走势新页面（大盘/市占）矩阵表：表头与数字单元格统一居中，
   保证多层表头与逐行数字垂直对齐；首列（月份/年度/能源）保持左对齐。 */
.market-matrix-table thead th {
  text-align: center;
}

.market-matrix-table .header-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 2px;
  border: 1px solid rgba(31, 143, 95, 0.45);
  border-radius: 50%;
  color: var(--accent);
  cursor: help;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.market-matrix-table .header-help-content {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  left: 50%;
  width: max-content;
  max-width: 180px;
  padding: 5px 7px;
  border-radius: 4px;
  background: #1f382d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  visibility: hidden;
  white-space: nowrap;
}

.market-matrix-table .header-help:hover .header-help-content,
.market-matrix-table .header-help:focus .header-help-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.market-matrix-table .metric-number {
  text-align: center;
}

.market-matrix-table tbody th {
  text-align: left;
}

.market-matrix-table .total-row th {
  text-align: left;
  font-weight: 600;
}

.market-matrix-table .total-row td {
  font-weight: 600;
  background: rgba(31, 143, 95, 0.06);
}

.operating-overall-yearly-table .operating-indent-0 th,
.operating-overall-yearly-table .operating-indent-0 td,
.operating-monthly-matrix-table .operating-indent-0 th,
.operating-monthly-matrix-table .operating-indent-0 td {
  border-bottom: 1px solid rgba(31, 143, 95, 0.22);
}

.operating-overall-yearly-table .operating-indent-0 th:first-child,
.operating-monthly-matrix-table .operating-indent-0 th:first-child {
  font-weight: 600;
  color: #173128;
}

.metric-definition-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-definition-help {
  position: absolute;
  top: -1px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(31, 143, 95, 0.24);
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.08);
  color: #18774e;
  cursor: help;
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 1;
}

.metric-definition-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 9;
  display: none;
  width: min(340px, 72vw);
  padding: 9px 10px;
  border: 1px solid rgba(31, 143, 95, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(20, 41, 33, 0.14);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.metric-definition-trigger:hover .metric-definition-popover,
.metric-definition-help:focus + .metric-definition-popover {
  display: block;
}

.metric-definition-popover-up {
  top: auto;
  bottom: calc(100% + 8px);
}

/* 表格行高窄，定义气泡统一向上展开，避免向下撑出滚动条 */
.operating-overall-table .metric-definition-popover,
.operating-breakdown-table .metric-definition-popover {
  top: auto;
  bottom: calc(100% + 6px);
}

.operating-breakdown-table {
  min-width: 1500px;
}

.operating-breakdown-table td:nth-child(2) {
  min-width: 96px;
  width: 96px;
}

.operating-customer-filter {
  justify-content: flex-start;
  margin: 0 0 16px;
}

/* 总体-按月表上方的筛选区（左对齐，独立一行） */
.operating-monthly-filter {
  justify-content: flex-start;
  margin: 24px 0 16px;
}

.operating-customer-filter label {
  min-width: 150px;
}

.operating-customer-detail-table {
  min-width: 2200px;
}

.operating-sales-order-detail-table {
  min-width: 3200px;
}

.inventory-ops-shell {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.inventory-ops-panel-wrap {
  padding: 12px;
  border: 1px solid rgba(185, 106, 24, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.92), rgba(255, 255, 255, 0.96));
}

.inventory-ops-tabbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(185, 106, 24, 0.08);
}

.inventory-ops-tab {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7c5321;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.inventory-ops-tab.is-active {
  background: #b96a18;
  color: #fffaf3;
  box-shadow: 0 10px 20px rgba(185, 106, 24, 0.18);
}

.inventory-ops-panel {
  min-height: 0;
}

.inventory-ops-chart {
  height: 360px;
}

.inventory-summary-cards {
  margin-top: 0;
}

.inventory-summary-card {
  min-height: 118px;
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.86), rgba(255, 255, 255, 0.98));
}

.operating-signing-grid {
  display: grid;
  gap: 8px;
}

.operating-signing-row {
  margin-top: 0;
}

.operating-signing-row-tight {
  gap: 6px;
}

.operating-signing-row-tight .metric-card {
  padding: 8px 8px 7px;
}

.operating-signing-row-tight .metric-value {
  font-size: 0.96rem;
}

.operating-signing-row-tight .metric-unit {
  font-size: 0.64rem;
}

.operating-signing-row-tight .metric-delta {
  font-size: 0.63rem;
}

.metric-card-signing-new {
  background:
    linear-gradient(180deg, rgba(31, 143, 95, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(31, 143, 95, 0.22);
  position: relative;
}

.metric-card-signing-new::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  border-left: 1px dashed rgba(31, 143, 95, 0.24);
}

.metric-card-signing-new-sales {
  background:
    linear-gradient(180deg, rgba(59, 113, 202, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(59, 113, 202, 0.22);
}

.metric-card-signing-new-sales::before {
  border-left-color: rgba(59, 113, 202, 0.24);
}

.metric-label-accent {
  color: #1f8f5f;
  font-weight: 700;
}

.metric-card-signing-new-sales .metric-label-accent {
  color: #3b71ca;
}

.signing-new-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
}

.signing-new-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.signing-new-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.61rem;
}

.signing-new-summary strong {
  display: block;
  margin-top: 0;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  text-align: right;
}

.metric-card-signing-new {
  padding: 7px 7px 6px;
}

.operating-signing-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 2.04fr);
  margin-top: 10px;
  align-items: stretch;
}

.operating-timeline-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  max-height: 920px;
}

.signing-timeline-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.signing-timeline-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signing-timeline-toggle {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(25, 45, 38, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1;
  cursor: pointer;
}

.signing-timeline-toggle.is-active {
  border-color: rgba(31, 143, 95, 0.24);
  background: rgba(31, 143, 95, 0.1);
  color: var(--accent);
}

.signing-timeline-board {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  margin-top: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 143, 95, 0.24) transparent;
}

.signing-timeline-board::-webkit-scrollbar {
  width: 4px;
}

.signing-timeline-board::-webkit-scrollbar-track {
  background: transparent;
}

.signing-timeline-board::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(31, 143, 95, 0.22);
}

.signing-day-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.signing-day-row-compact {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.signing-day-column {
  display: grid;
  gap: 10px;
}

.signing-day-column-compact {
  gap: 8px;
}

.signing-day-axis {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 100%;
}

.signing-day-axis-compact {
  justify-items: start;
  padding-top: 2px;
  padding-left: 0;
}

.signing-day-axis::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(31, 143, 95, 0.18), rgba(31, 143, 95, 0.48), rgba(31, 143, 95, 0.14));
}

.signing-day-axis-compact::before {
  left: 4px;
  top: 12px;
  bottom: -8px;
}

.signing-day-row-compact.is-first-visible .signing-day-axis-compact::before {
  top: 12px;
}

.signing-day-row-compact.is-last-visible .signing-day-axis-compact::before {
  bottom: 18px;
}

.signing-day-row-compact.is-only-visible .signing-day-axis-compact::before {
  display: none;
}

.signing-day-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2f9c6a;
  box-shadow: 0 0 0 6px rgba(31, 143, 95, 0.08);
}

.signing-day-date {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(25, 45, 38, 0.1);
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}

.signing-event-card {
  position: relative;
  padding: 12px 14px;
  border: 1px solid rgba(25, 45, 38, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.signing-event-card-compact {
  padding: 7px 9px 8px;
  border-radius: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.signing-event-card-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(30, 58, 44, 0.12);
  border-color: rgba(31, 143, 95, 0.22);
  z-index: 2;
}

.signing-event-card::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 14px;
  height: 2px;
  background: rgba(31, 143, 95, 0.28);
}

.signing-event-card-purchase::after {
  right: -14px;
}

.signing-event-card-sales::after {
  left: -14px;
}

.signing-event-card-compact::after {
  display: none;
}

.signing-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.signing-event-side,
.signing-event-center {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
}

.signing-event-side {
  background: rgba(31, 143, 95, 0.14);
  color: #1d7f58;
}

.signing-event-card-sales .signing-event-side {
  background: rgba(192, 108, 44, 0.14);
  color: #b45f20;
}

.signing-event-center {
  background: rgba(20, 41, 33, 0.05);
  color: var(--muted);
}

.signing-event-card strong {
  display: block;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.signing-event-compact-main {
  display: grid;
  gap: 2px;
}

.signing-event-compact-main strong {
  font-size: 0.75rem;
  line-height: 1.3;
}

.signing-event-code {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
  word-break: break-all;
  display: none;
}

.signing-event-compact-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.64rem;
  line-height: 1.25;
}

.signing-event-compact-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20, 41, 33, 0.05);
}

.signing-event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 10px 0 0;
}

.signing-event-meta-hover {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(25, 45, 38, 0.12);
}

.signing-event-card-compact:hover .signing-event-meta-hover {
  display: grid;
}

.signing-event-meta div {
  min-width: 0;
}

.signing-event-meta dt,
.signing-event-meta dd {
  margin: 0;
}

.signing-event-meta dt {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.2;
}

.signing-event-meta dd {
  margin-top: 3px;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.35;
  word-break: break-word;
}

.signing-event-order-codes dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.signing-event-order-codes dd span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20, 41, 33, 0.05);
  font-size: 0.68rem;
}

.signing-compare-table td:first-child {
  font-weight: 700;
}

.operating-signing-analytics {
  overflow: hidden;
}

.operating-signing-analytics-grid {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.signing-rank-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid rgba(25, 45, 38, 0.08);
  border-radius: 18px;
  background: rgba(246, 249, 245, 0.76);
}

.signing-rank-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.signing-rank-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.signing-rank-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.signing-rank-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.signing-rank-controls select {
  min-width: 108px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 0.74rem;
}

.signing-rank-table-wrap {
  min-height: 0;
  overflow: hidden;
}

.signing-rank-table {
  width: 100%;
  table-layout: fixed;
}

.signing-rank-table th:nth-child(1),
.signing-rank-table td:nth-child(1) {
  width: 40%;
}

.signing-rank-table th:nth-child(2),
.signing-rank-table td:nth-child(2) {
  width: 12%;
}

.signing-rank-table th:nth-child(3),
.signing-rank-table td:nth-child(3) {
  width: 16%;
}

.signing-rank-table th:nth-child(4),
.signing-rank-table td:nth-child(4) {
  width: 20%;
}

.signing-rank-table th:nth-child(5),
.signing-rank-table td:nth-child(5) {
  width: 12%;
}

.signing-rank-table th:not(:first-child),
.signing-rank-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.signing-rank-table td:first-child {
  max-width: none;
  word-break: break-word;
  white-space: normal;
}

.signing-rank-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.signing-rank-page-info {
  min-width: 72px;
  text-align: right;
}

.signing-rank-pager button {
  min-width: 62px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
}

.signing-rank-pager button:disabled {
  opacity: 0.42;
  cursor: default;
}

.operating-grid-two {
  margin-top: 8px;
}

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

.operating-full-width-panel {
  width: 100%;
  max-width: none;
}

.delivery-progress-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.delivery-progress-item {
  padding: 10px 12px;
  border: 1px solid rgba(25, 45, 38, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.delivery-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
}

.delivery-progress-head strong {
  font-size: 0.8rem;
}

.delivery-progress-head span {
  color: var(--muted);
}

.delivery-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}

.delivery-progress-bar {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(20, 41, 33, 0.08);
  overflow: hidden;
}

.delivery-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f9d69, #2f7f57);
}

.operating-risk-block {
  margin-bottom: 18px;
}

@media (max-width: 1280px) {
  .executive-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .weekly-cards.cards-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.diagnostics-summary {
  position: fixed;
  bottom: 16px;
  left: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 280px;
  border: 1px solid rgba(20, 41, 33, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(20, 41, 33, 0.12);
  overflow: hidden;
}

.diagnostics-summary-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid rgba(20, 41, 33, 0.08);
  border-bottom: 1px solid rgba(20, 41, 33, 0.08);
}

.diagnostics-summary-item:nth-child(2n) {
  border-right: 0;
}

.diagnostics-summary-item:nth-child(3),
.diagnostics-summary-item:nth-child(4) {
  border-bottom: 0;
}

.diagnostics-summary-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.diagnostics-summary-item svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.diagnostics-summary-action {
  border: 0;
  background: rgba(31, 143, 95, 0.04);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 140ms ease;
}

.diagnostics-summary-action:hover {
  background: rgba(31, 143, 95, 0.12);
}

.diagnostics-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: min(560px, 92vw);
  height: 100vh;
  padding: 22px 18px 28px;
  background: rgba(243, 241, 234, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(20, 41, 33, 0.14);
  transform: translateX(104%);
  transition: transform 180ms ease;
  overflow-y: auto;
  backdrop-filter: blur(18px);
}

body.diagnostics-open .diagnostics-drawer {
  transform: translateX(0);
}

.diagnostics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.diagnostics-kicker,
.diagnostics-head h2,
.diagnostics-section h3,
.diagnostics-sql-meta p,
.diagnostics-sql-name {
  margin: 0;
}

.diagnostics-kicker {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnostics-head h2 {
  margin-top: 6px;
  font-size: 1.4rem;
}

.diagnostics-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.diagnostics-section {
  margin-top: 22px;
}

.diagnostics-section h3 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

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

.diagnostics-meta div,
.diagnostics-sql-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.diagnostics-meta div {
  padding: 12px 14px;
}

.diagnostics-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.diagnostics-meta dd {
  margin: 6px 0 0;
  font-size: 1rem;
}

.diagnostics-sql-list {
  display: grid;
  gap: 12px;
}

.diagnostics-sql-card {
  padding: 12px 14px;
}

.diagnostics-sql-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.diagnostics-sql-name {
  margin-top: 8px;
  font-size: 0.92rem;
}

.diagnostics-sql-text {
  overflow-x: auto;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f3eb;
  color: #30463e;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

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

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .dashboard-hero,
  .dashboard-bottom-grid,
  .grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-status-strip {
    grid-template-columns: 1fr;
  }

  .weekly-anchors {
    margin-top: 0;
  }

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

  .cards-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-cards.cards-three,
  .weekly-cards.cards-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-two-wide,
  .alerts-list,
  .operating-signing-layout {
    grid-template-columns: 1fr;
  }

  .signing-day-row,
  .signing-day-row-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signing-day-axis,
  .signing-day-axis-compact {
    justify-items: start;
    padding-left: 6px;
  }

  .signing-day-axis::before,
  .signing-day-axis-compact::before {
    left: 11px;
    top: 10px;
    bottom: -10px;
  }

  .signing-event-card-purchase::after,
  .signing-event-card-sales::after {
    display: none;
  }
  .operating-signing-analytics-grid,
  .signing-timeline-board {
    height: auto;
    max-height: none;
  }

  .inventory-ops-tabbar {
    flex-wrap: wrap;
  }

  .inventory-ops-chart {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 12px 12px 22px;
  }

  .executive-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-summary-grid .metric-card {
    min-height: 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 16px;
  }

  .dashboard-hero-main,
  .hero-anchors {
    padding: 14px;
  }

  .cards-six {
    grid-template-columns: 1fr;
  }

  .diagnostics-meta {
    grid-template-columns: 1fr;
  }

  .diagnostics-summary {
    bottom: 12px;
    left: 12px;
    right: auto;
    width: auto;
    overflow-x: auto;
  }

  .signing-event-meta {
    grid-template-columns: 1fr;
  }

  .inventory-ops-tabbar {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .inventory-ops-tab {
    width: 100%;
  }

  .inventory-ops-chart {
    height: 280px;
  }
}

/* ---------- Admin / Memory Diagnostics ---------- */

.admin-metrics-panel {
  margin-top: 8px;
}

.admin-dual-panel {
  margin-top: 8px;
}

.admin-meta-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}

.admin-meta-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.admin-meta-list dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-meta-list dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
}

.admin-table-panel {
  margin-top: 8px;
}

.admin-subsection {
  margin-top: 10px;
}

.admin-subsection h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-encoding,
.admin-compression {
  display: inline-block;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(31, 143, 95, 0.06);
  color: var(--accent);
  white-space: nowrap;
}

.admin-stat {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--text);
  vertical-align: bottom;
}

.admin-stat-none {
  color: rgba(90, 111, 102, 0.4);
  font-size: 0.72rem;
}

@media (max-width: 1280px) {
  .admin-stat {
    max-width: 120px;
  }
}

/* Forecast interpretation panel */
.forecast-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.forecast-meta-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}

.forecast-meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.forecast-meta-head h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

.forecast-model-badge {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(31, 143, 95, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.forecast-meta-body h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 12px 0 6px;
}

.forecast-meta-body pre {
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
}

.forecast-params p {
  margin: 0;
}

.forecast-param-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.forecast-param-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.forecast-param-key {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.forecast-param-value {
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.forecast-summary-card {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(31, 143, 95, 0.06);
  border: 1px solid rgba(31, 143, 95, 0.12);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
}

.forecast-detail-toggle {
  margin-top: 10px;
  border: 1px solid rgba(31, 143, 95, 0.18);
  border-radius: 8px;
  background: rgba(246, 249, 247, 0.92);
  overflow: hidden;
}

.forecast-detail-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f8f5f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forecast-detail-toggle summary::-webkit-details-marker {
  display: none;
}

.forecast-detail-toggle summary::after {
  content: "展开";
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.forecast-detail-toggle[open] summary::after {
  content: "收起";
}

.forecast-detail-body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(125, 154, 139, 0.12);
  min-width: 0;
}

.forecast-detail-body pre {
  margin-top: 10px;
}

.forecast-param code {
  background: rgba(31, 143, 95, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

.forecast-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forecast-event-list li {
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.forecast-event-list li:last-child {
  border-bottom: none;
}

.forecast-no-events {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 12%, rgba(31, 143, 95, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(185, 106, 24, 0.16), transparent 26%),
    linear-gradient(135deg, #f5f0e4 0%, #e7e2d5 100%);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.86));
  box-shadow: 0 28px 70px rgba(20, 41, 33, 0.16);
}

.login-brand {
  display: inline-grid;
  place-items: center;
  min-width: 78px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(31, 143, 95, 0.12);
  color: #1f8f5f;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-kicker {
  margin: 22px 0 6px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.login-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.login-error {
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 106, 24, 0.22);
  border-radius: 12px;
  background: rgba(185, 106, 24, 0.1);
  color: #8f4c0f;
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(25, 45, 38, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  padding: 0 13px;
  outline: none;
}

.login-form input:focus {
  border-color: rgba(31, 143, 95, 0.58);
  box-shadow: 0 0 0 4px rgba(31, 143, 95, 0.12);
}

.login-form button {
  height: 48px;
  border: 0;
  border-radius: 15px;
  background: #1f8f5f;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(31, 143, 95, 0.24);
}

.login-feishu-button {
  display: inline-grid;
  width: 100%;
  height: 50px;
  place-items: center;
  margin-top: 24px;
  border: 0;
  border-radius: 15px;
  background: #1f8f5f;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(31, 143, 95, 0.24);
}

.login-feishu-button[disabled] {
  cursor: not-allowed;
  background: rgba(25, 45, 38, 0.24);
  box-shadow: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(25, 45, 38, 0.12);
}

.sidebar-brand {
  color: inherit;
  text-decoration: none;
}

.home-shell {
  max-width: 1180px;
  padding-top: 28px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(25, 45, 38, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 20%, rgba(31, 143, 95, 0.18), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(185, 106, 24, 0.13), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 232, 0.88));
  box-shadow: 0 26px 70px rgba(20, 41, 33, 0.1);
}

.home-hero-copy h1,
.home-hero-copy p,
.home-hero-mark em,
.home-dashboard-card h2,
.home-dashboard-card p {
  margin: 0;
}

.home-hero-copy h1 {
  margin-top: 18px;
  max-width: none;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}

.home-hero-copy p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.home-hero-mark {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px solid rgba(31, 143, 95, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(31, 143, 95, 0.13), rgba(255, 255, 255, 0.68));
}

.home-hero-mark span {
  display: block;
  font-size: clamp(4.5rem, 10vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.82;
  color: rgba(31, 143, 95, 0.88);
}

.home-hero-mark em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-dashboard-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 240px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(25, 45, 38, 0.1);
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
  background:
    radial-gradient(circle at top right, var(--home-card-glow, rgba(31, 143, 95, 0.12)), transparent 48%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(20, 41, 33, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-dashboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 143, 95, 0.24);
  box-shadow: 0 24px 60px rgba(20, 41, 33, 0.12);
}

.home-dashboard-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--home-card-dot, rgba(31, 143, 95, 0.16));
}

.home-dashboard-code {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.home-dashboard-card h2 {
  margin-top: 44px;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.home-dashboard-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.home-dashboard-card em {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: #1f8f5f;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-card-macro {
  --home-card-glow: rgba(31, 143, 95, 0.16);
  --home-card-dot: rgba(31, 143, 95, 0.18);
}

.home-card-core {
  --home-card-glow: rgba(23, 49, 40, 0.14);
  --home-card-dot: rgba(23, 49, 40, 0.16);
}

.home-card-supply {
  --home-card-glow: rgba(71, 132, 86, 0.18);
  --home-card-dot: rgba(71, 132, 86, 0.18);
}

.home-card-demand {
  --home-card-glow: rgba(185, 106, 24, 0.16);
  --home-card-dot: rgba(185, 106, 24, 0.18);
}

.home-card-finance {
  --home-card-glow: rgba(65, 87, 112, 0.15);
  --home-card-dot: rgba(65, 87, 112, 0.17);
}

.module-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  border: 1px dashed rgba(31, 143, 95, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(31, 143, 95, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: center;
}

.module-placeholder strong {
  display: block;
  color: var(--text);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.module-placeholder span {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
}

@media (max-width: 1500px) {
  .chart-with-side-legend {
    grid-template-columns: 1fr;
  }

  .chart-side-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero-mark {
    min-height: 150px;
  }

  .home-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (max-width: 560px) {
  .executive-summary-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 24px;
    border-radius: 22px;
  }

  .home-shell {
    padding-top: 16px;
  }

  .home-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .home-hero-copy h1 {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
    letter-spacing: -0.045em;
  }

  .home-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard-card {
    min-height: 190px;
  }
}

/* ==========================================================================
   维护人多选下拉（仿 ElementUI el-select multiple）
   用于经营看板：总体矩阵 / 下拆 / 客户明细 / 客户筛选 的「维护人」筛选。
   与 .operating-overall-filter 内的 select 视觉规范保持一致：
   高 34px、圆角 10px、边框 rgba(31,143,95,.2)、主色 #1f8f5f。
   ========================================================================== */

.multi-select {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  min-width: 158px;
  max-width: 280px;
}

.multi-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  padding: 0 30px 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(31, 143, 95, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

/* 下拉箭头 ▾ */
.multi-select-trigger::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted, #8a9a91);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.multi-select-trigger:hover {
  border-color: rgba(31, 143, 95, 0.5);
}

.multi-select-trigger:focus-visible {
  outline: none;
  border-color: #1f8f5f;
  box-shadow: 0 0 0 3px rgba(31, 143, 95, 0.16);
}

/* 展开时箭头朝上 */
.multi-select.is-open .multi-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.multi-select-trigger:disabled {
  background: #f4f6f5;
  color: #b6c2bb;
  cursor: not-allowed;
}

.multi-select-trigger:disabled::after {
  border-top-color: #cdd6d1;
}

.multi-select-trigger [data-multi-select-summary] {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 已选值时高亮（主色字 + 主色边框） */
.multi-select.has-value .multi-select-trigger {
  color: #1f8f5f;
  font-weight: 600;
  border-color: rgba(31, 143, 95, 0.55);
}

/* 下拉面板 */
.multi-select-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(31, 143, 95, 0.18);
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 40, 32, 0.14);
}

/* panel 默认由 [hidden] 属性隐藏；展开靠 JS 移除 hidden，无需 CSS 介入 */

.multi-select-actions {
  display: flex;
  justify-content: flex-end;
  padding: 2px 4px 6px;
  border-bottom: 1px solid rgba(31, 143, 95, 0.1);
}

.multi-select-actions button {
  height: 26px;
  padding: 0 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #8a9a91);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.multi-select-actions button:hover {
  background: rgba(31, 143, 95, 0.08);
  color: #1f8f5f;
}

.multi-select-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.multi-select-options {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
  padding: 2px 0;
}

/* 选项：左侧勾选位 + 文本 */
.multi-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.multi-select-option::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid #c2ccc6;
  background: #fff;
  transition: background 120ms ease, border-color 120ms ease;
}

.multi-select-option:hover {
  background: rgba(31, 143, 95, 0.07);
}

/* 选中态：实心勾 + 主色字 */
.multi-select-option.is-selected {
  color: #1f8f5f;
  font-weight: 600;
  background: rgba(31, 143, 95, 0.08);
}

.multi-select-option.is-selected::before {
  background: #1f8f5f;
  border-color: #1f8f5f;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%);
  background-size: 8px 8px;
  background-position: 3px 4px;
  background-repeat: no-repeat;
}

.multi-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.multi-select-option:disabled:hover {
  background: transparent;
}

/* 部门联动过滤：不在当前部门下的选项隐藏 */
.multi-select-option.is-hidden {
  display: none;
}
