:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #fff;
  --wash: #fafbfc;
  --border: #e1e5eb;
  --text: #272b36;
  --muted: #657185;
  --accent: #a94108;
  --orange: #d96416;
  --selection: #fff0e2;
  --green: #26724b;
  --red: #b62d3a;
  background: var(--bg);
  color: var(--text);
  font: 11.25px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.top { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--border); background: var(--surface); }
.top-inner, main, footer { max-width: 1360.8px; margin-inline: auto; padding-inline: 21.6px; }
.top-inner { display: flex; align-items: center; gap: 21.6px; min-height: 42.7px; }
.brand { display: flex; align-items: center; gap: 7.2px; font-weight: 700; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 23.4px; height: 23.4px; border-radius: 6.3px; background: #c9500e; color: white; font-size: 13.5px; }
.brand-divider { display: inline-block; height: 9.9px; margin: 0 4.5px; border-left: 1px solid var(--border); }
.top nav { display: flex; align-self: stretch; gap: 13.5px; overflow: auto; }
nav a { display: flex; align-items: center; padding: 0 6.3px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 10.8px; font-weight: 600; }
nav a:hover, nav a[aria-current] { color: var(--accent); }
nav a[aria-current] { border-color: var(--orange); }
.preview-badge { margin-left: auto; border: 1px solid #f0d6be; border-radius: 4.5px; padding: 2px 6.3px; color: var(--accent); background: #fff8f0; font-size: 9.9px; white-space: nowrap; }
main { margin-block: 0; padding-block: 9px 14.4px; min-height: calc(100vh - 108px); }
main:has(> .business-overview) { padding-top: 0; }
.panel-head p { margin: 0; color: var(--muted); font-size: 10.8px; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: 8.1px; background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 6.3px; padding: 5.8px 9px; }
.panel-head h2, .meeting-list h2 { margin: 0; font-size: 11.7px; font-weight: 650; }
.panel-head p { margin-top: 2px; }
.panel-foot { padding: 5.4px 9px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9.9px; }
.overview-controls, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4.5px; }
.overview-controls { margin-bottom: 3.6px; }
.select { display: flex; align-items: center; gap: 4.5px; min-height: 22.5px; padding: 0 5.4px 0 6.3px; border: 1px solid var(--border); border-radius: 5.4px; color: var(--muted); font-size: 10.8px; }
.select :is(select, input) { border: 0; min-height: 21.6px; padding: 1px 2.7px; background: var(--surface); color: var(--text); font-size: 10.8px; }
.period { margin-left: auto; color: var(--muted); font-size: 10.8px; font-variant-numeric: tabular-nums; }
.overview-filter-sticky {
  position: sticky; top: var(--navigation-height,44.1px); z-index: 40;
  padding-top: 9px; margin-bottom: 9px; background: var(--bg);
}
.overview-filter-panel { padding: 6.3px 9px 3.6px; box-shadow: 0 4.5px 9px #272b360b; }
.overview-layout { display: grid; grid-template-columns: minmax(0,1fr) 124.2px; gap: 10.8px; align-items: start; }
.overview-content { grid-column: 1; grid-row: 1; min-width: 0; }
.overview-toc {
  grid-column: 2; grid-row: 1; position: sticky; z-index: 20;
  top: calc(var(--navigation-height,44.1px) + var(--filter-height,0px) + 11.7px);
  padding: 7.2px 6.3px 5.4px; border: 1px solid var(--border); border-radius: 8.1px;
  background: var(--surface); box-shadow: 0 4.5px 14.4px #272b3609;
}
.overview-toc p { margin: 0 7.2px 5.4px; color: var(--muted); font-size: 9.9px; font-weight: 650; }
.overview-toc button {
  display: flex; align-items: center; gap: 6.3px; width: 100%; padding: 4.5px 6.3px;
  border: 1px solid transparent; text-align: left; color: var(--muted); white-space: nowrap;
}
.overview-toc button::before { content: ''; width: 5.4px; height: 5.4px; border-radius: 50%; background: #c2c9d2; }
.overview-toc button:hover { background: var(--wash); color: var(--text); }
.overview-toc button[aria-current] { border-color: #f0d2b5; background: #fff6ed; color: var(--accent); font-weight: 650; }
.overview-toc button[aria-current]::before { background: var(--orange); box-shadow: 0 0 0 2px #f7d9bd; }
.overview-section {
  margin-bottom: 9px;
  scroll-margin-top: calc(var(--navigation-height,44.1px) + var(--filter-height,0px) + 11.7px);
}
.overview-section:last-child { margin-bottom: 0; }
.overall-section { border: 0; overflow: visible; background: transparent; }
.overview-section-heading { margin: 0 0 4.5px; font-size: 11.7px; font-weight: 650; }
.overall-section .trend-panel { margin-bottom: 0; }
.flat-filter { display: flex; align-items: baseline; gap: 6.3px; margin-bottom: 3.6px; }
.flat-filter>span { min-width: 39.6px; color: var(--muted); font-size: 10.8px; }
.flat-filter>div { display: flex; flex-wrap: wrap; gap: 3.6px; }
.flat-filter button, .period-choice { padding: 2.2px 6.3px; border: 1px solid var(--border); border-radius: 4.5px; background: var(--surface); font-size: 10.8px; color: var(--text); }
.flat-filter button:hover, .period-choice:hover { border-color: #e5b28f; color: var(--accent); }
.flat-filter button[aria-pressed=true], .period-choice[aria-pressed=true] { border-color: #ecc8a8; background: var(--selection); color: var(--accent); font-weight: 600; }
.flat-filter small { margin-left: 4.5px; color: inherit; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6.3px; margin: 0 0 7.2px; border: 0; background: transparent; }
.kpi { min-width: 0; padding: 5.4px 9px; border: 1px solid var(--border); border-top: 2px solid #edb787; border-radius: 7.2px; background: var(--surface); }
.kpi h2 { margin: 0; color: var(--muted); font-size: 10.8px; font-weight: 600; }
.kpi strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font-size: clamp(17.1px,1.9vw,22.5px); font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.21; }
.kpi:last-child strong { color: var(--accent); }
.changes { display: flex; flex-wrap: wrap; column-gap: 8.1px; min-height: 14.4px; margin-top: 2px; color: var(--muted); font-size: 9.9px; }
.changes b { font-weight: 600; }
.up { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--muted); }
.trend-panel { margin-bottom: 9.9px; }
.trend-main { padding: 0 9px 4.5px; }
.trend-scroll { overflow-x: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 10.8px; margin-bottom: 4.5px; color: var(--muted); font-size: 9.9px; }
.legend span { display: inline-flex; align-items: center; gap: 4.5px; }
.tone-0 { --tone: #d96416; --tag-text: #96420e; --tag-bg: #fff0e3; }
.tone-1 { --tone: #eba851; --tag-text: #82500c; --tag-bg: #fff4dc; }
.tone-2 { --tone: #647a86; --tag-text: #3c5c67; --tag-bg: #edf4f6; }
.tone-3 { --tone: #a6a7ae; --tag-text: #555a68; --tag-bg: #f2f3f5; }
.dot { width: 7.2px; height: 7.2px; border-radius: 50%; background: var(--tone); }
.trend-layout { display: flex; min-width: 100%; width: max-content; padding-top: 5.4px; }
.trend-axis { flex: 0 0 27.9px; height: 80.1px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-right: 6.3px; color: var(--muted); font-size: 9px; line-height: 0; }
.trend-bars { display: grid; flex: 1; grid-template-columns: repeat(var(--days),minmax(18px,1fr)); min-width: calc(var(--days) * 18px); }
.trend-day { text-align: center; font-size: 9px; color: var(--muted); white-space: nowrap; }
.trend-day span { display: block; min-height: 13.5px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.trend-bar { box-sizing: content-box; display: flex; align-items: center; flex-direction: column-reverse; height: 80.1px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to bottom,var(--border) 0 1px,transparent 1px 25%); }
.trend-bar i { width: 64%; max-width: 46.8px; flex: 0 0 var(--share); background: var(--tone); }
.trend-day:hover .trend-bar { background-color: #fff8eb; }
.trend-empty { margin: 0; padding: 12.6px; color: var(--muted); font-size: 10.8px; }
.table-scroll, .business-overview .review-overview-scroll { overflow: auto; max-height: none; }
.table-scroll table { font-variant-numeric: tabular-nums; }
.business-overview .review-overview-table table { min-width: 828px; font-size: 10.35px; line-height: 1.55; }
.business-overview .review-overview-table :is(td,th) { vertical-align: top; border-right: 1px solid #ebedf0; }
.business-overview .review-overview-table td { padding: 7.2px 8.1px; }
.business-overview .review-overview-table th { padding: 6.3px 8.1px; font-size: 9.9px; }
.business-overview .review-overview-table tbody th { font-size: 10.8px; }
.business-overview .review-overview-table thead th { background: var(--surface); color: var(--text); }
.business-overview .review-overview-table .review-total { background: #f8f9fb; }
.business-overview .review-overview-table tr[data-review-row="商务汇总"]:not(.review-previous-row) { background: #fff3e8; }
.business-overview .review-overview-table .review-previous-row { background: #f4f5f7; color: var(--muted); }
.business-overview .review-overview-table .review-channel-name { border-color: var(--orange); }
.business-overview .review-overview-table .review-previous-row .review-channel-name { border-color: #d5dbe2; }
.business-overview .review-overview-table .review-emphasis { color: #b43a20; }
.business-overview .review-overview-table .review-metric { gap: 2.7px 5.4px; margin-bottom: 2.7px; }
.business-overview .review-overview-table .review-metric>span { font-size: 9.9px; }
.business-overview .review-overview-table .review-ratio { display: inline-block; flex-basis: auto; padding: 0 3.6px; border-radius: 2.7px; background: #eef0f4; font-size: 9px; }
.business-overview .review-overview-table .review-previous-label { font-size: 9px; font-weight: 400; }
.business-overview .review-overview-table .review-breakdown { font-size: 9px; line-height: 14.4px; color: var(--muted); }
.business-overview .review-overview-table .review-detail-item { margin-right: 4.5px; white-space: nowrap; }
.business-overview .review-overview-table .review-detail-item b { color: var(--text); font-weight: 500; }
.business-overview .meeting-product-conversion { font-size: 10.35px; line-height: 1.55; margin-block: 2.7px; }
.business-overview .meeting-product-conversion small { font-size: 9px; color: var(--muted); }
.business-overview .review-deal-summary { font-size: 8.1px; }
.business-overview .review-change.up { color: var(--green); }
.business-overview .review-change.down { color: var(--red); }
.matrix { --matrix-source-width: 72px; --matrix-total-width: 54px; --matrix-day-width: 36px; }
.matrix .toolbar { flex: 1; justify-content: flex-end; }
.matrix-head { flex-wrap: wrap; }
.matrix .flat-filter { margin: 0; }
.matrix-dedupe { display: inline-flex; align-items: center; gap: 3.6px; }
.matrix-dedupe span { width: 9.9px; height: 9.9px; border: 1px solid currentColor; border-radius: 2px; font-size: 8.1px; line-height: 8.1px; text-align: center; }
.matrix-actions { display: flex; align-items: center; gap: 4.5px; }
.matrix-status:empty { display: none; }
.matrix-status { color: var(--red); font-size: 9.9px; }
.matrix-table { height: var(--matrix-height,324px); overscroll-behavior: contain; scrollbar-gutter: stable; }
.matrix-table table {
  table-layout: fixed;
  width: max(100%,calc(var(--matrix-source-width) + var(--matrix-total-width) + var(--matrix-days) * var(--matrix-day-width)));
}
.matrix-table thead { position: sticky; top: 0; z-index: 3; }
.matrix-table th { position: static; }
.matrix-table tr>:where(:first-child,:nth-child(2)):not([colspan]) {
  position: sticky; top: auto; z-index: 1; background: #fbfcfd;
}
.matrix-table tr>:first-child:not([colspan]) { left: 0; width: var(--matrix-source-width); }
.matrix-table tr>:nth-child(2):not([colspan]) {
  left: var(--matrix-source-width); width: var(--matrix-total-width);
  box-shadow: 2.7px 0 3.6px -3.6px #18274475;
}
.matrix-table .matrix-empty td { position: static; text-align: left; }
.matrix-table :is(td,th) { padding: 3.6px 5.4px; font-size: 9.9px; line-height: 13.5px; }
.matrix-table td, .matrix-table th:not(:first-child) { text-align: right; }
.matrix-table small { display: block; color: var(--muted); font-size: 9px; font-weight: 400; }
.matrix-table .sum-row :is(th,td) { background: #f3f5f8; font-weight: 650; }
.matrix-table .month-total { font-weight: 650; color: #8d4b22; }
.matrix-table .heat { color: #794e35; background: #fffbf8; }
.matrix-table .zero { color: #7c8798; }
.matrix-grip { display: grid; place-items: center; height: 15.3px; border-top: 1px solid var(--border); cursor: row-resize; touch-action: none; }
.matrix-grip::before { content: ''; width: 47.7px; height: 2.7px; border-radius: 89.1px; background: #bcc5d1; }
.matrix-grip:is(:hover,:focus-visible)::before, .matrix-resizing .matrix-grip::before { background: var(--orange); }
.matrix-resizing, .matrix-resizing * { cursor: row-resize !important; user-select: none; }
#matrix-enlarged {
  position: fixed; inset: 10.8px; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text);
}
#matrix-enlarged::backdrop { background: #272b3675; }
#matrix-enlarged .matrix { display: flex; flex-direction: column; height: 100%; border: 0; border-radius: 0; }
#matrix-enlarged .matrix-table { flex: 1 1 auto; min-height: 0; height: auto; }
#matrix-enlarged .matrix-grip { display: none; }
.pill { color: var(--tag-text); background: var(--tag-bg); padding: 2px 5.4px; border-radius: 4.5px; }
#business-grid-wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
#business-grid-wrap .page-tools { margin: 0 0 5.4px; }
#business-grid-wrap .page-search { min-height: 26.1px; }
#business-grid-wrap .facet-panel { padding-block: 5.4px; margin-bottom: 5.4px; }
#business-grid-wrap .facet-row { min-height: 24.3px; }
#business-grid-wrap .facet-choice { min-height: 21.6px; padding: 2.7px 6.3px; }
#business-grid-wrap .grid-tools { padding: 5.4px 7.2px; }
#business-grid-wrap :is(.page-tools,.grid-tools) button, #business-grid-wrap .grid-tools :is(select,summary) { min-height: 22.5px; }
#business-grid-wrap .workbench-grid { font-size: 10.35px; }
#business-grid-wrap .workbench-grid :is(th,td) { padding: 3.6px 6.3px; line-height: 13.5px; }
#business-grid-wrap .workbench-grid th { height: 27.9px; }
#business-grid-wrap .workbench-grid td { height: 24.3px; }
#business-grid-wrap .record-stats { padding: 3.6px 5.4px; }
#business-grid-wrap .table-wrap, #business-grid-wrap .grid-footer { background: var(--surface); }
#business-grid-wrap .lead-grid { max-height: none; }
#business-grid-wrap .grid-scroll { max-height: 62vh; }
#business-grid-wrap .lead-grid:fullscreen .grid-scroll { max-height: none; }
body:has(#business-grid[data-grid-route="statistics"]) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body:has(#business-grid[data-grid-route="statistics"]) > :is(main, footer) {
  align-self: center;
  width: 100%;
}
body:has(#business-grid[data-grid-route="statistics"]) > main {
  min-height: auto;
}
body:has(#business-grid[data-grid-route="statistics"]) > main,
#business-grid-wrap:has([data-grid-route="statistics"]),
#business-grid[data-grid-route="statistics"] {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
}
#business-grid[data-grid-route="statistics"] > .lead-grid { flex: 1 1 0; }
#business-grid[data-grid-route="statistics"] .grid-scroll {
  flex-basis: 0;
  min-height: 120px;
  max-height: none;
}
#business-grid-wrap .workbench-grid thead th { background: var(--wash); color: var(--text); }
#business-grid-wrap .facet-choice small { font-size: 9px; }
#business-grid-wrap .internal-match { margin-right: 5.4px; }
#business-grid-wrap .deal-match-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 5px;
  background: color-mix(in srgb, #378462 13%, white);
  color: #378462;
  font-weight: 500;
  white-space: nowrap;
}
.overview-jump { color: var(--accent); text-decoration: underline; font-size: 10.8px; }
.meeting-grid { display: grid; grid-template-columns: 184.5px minmax(0,1fr); gap: 9.9px; align-items: start; }
.meeting-list { padding: 9.9px; max-height: 69vh; overflow: auto; }
.meeting-list h2 { margin-bottom: 5.4px; }
.meeting-list button { display: block; width: 100%; border-color: transparent; text-align: left; white-space: nowrap; color: var(--muted); font-size: 10.8px; }
.meeting-list button:hover, .meeting-list button[aria-pressed=true] { border-color: #ecc8a8; background: var(--selection); color: var(--accent); }
.document .panel-head { border-bottom: 1px solid var(--border); padding: 9px 11.7px; }
.doc-date { margin-bottom: 3.6px; color: var(--accent); font-size: 10.8px; }
.doc-body { padding: 0 15.3px 10.8px; }
.doc-body h3 { margin: 10.8px 0 4.5px; font-size: 11.7px; }
.doc-body p { margin: 5.4px 0 9px; }
.doc-note { padding-top: 6.3px; color: var(--muted); font-size: 10.8px; }
.empty { padding: 14.4px 11.7px; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7.2px; padding-block: 8.1px 12.6px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9.9px; }
@media (max-width:990px) { .top-inner, main, footer { padding-inline: 18px; } }
@media (max-width:747px) {
  .overview-layout { display: block; }
  .overview-toc {
    display: flex; gap: 3.6px; margin: 0 0 8.1px; padding: 3.6px;
    top: calc(var(--navigation-height,44.1px) + var(--filter-height,0px));
  }
  .overview-toc p { display: none; }
  .overview-toc button { flex: 1; justify-content: center; padding: 4.5px 2.7px; }
  .overview-section {
    scroll-margin-top: calc(var(--navigation-height,44.1px) + var(--filter-height,0px) + var(--directory-height,0px) + 9px);
  }
}
@media (max-width:684px) {
  .top-inner, main, footer { padding-inline: 10.8px; }
  .top-inner { flex-wrap: wrap; gap: 6.3px; padding-top: 7.2px; }
  .brand { flex: 1; }
  .preview-badge { order: 2; }
  .top nav { order: 3; width: 100%; min-height: 34.2px; gap: 4.5px; justify-content: space-between; }
  .panel-head { flex-wrap: wrap; }
  .matrix .toolbar { justify-content: flex-start; }
  .period { width: 100%; margin-left: 0; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi:last-child { grid-column: span 2; }
  #business-grid-wrap .facet-panel { padding-right: 11.7px; }
  #business-grid-wrap .facet-mode { position: static; margin-bottom: 5.4px; }
  .meeting-grid { grid-template-columns: minmax(0,1fr); }
  .meeting-list { max-height: 144px; }
}
