.f-app {
  --f-bg: #f4f6f9;
  --f-panel: #ffffff;
  --f-ink: #172033;
  --f-muted: #667085;
  --f-line: #dfe4ec;
  --f-line-soft: #edf0f4;
  --f-navy: #142033;
  --f-navy-2: #1e2c42;
  --f-blue: #2459d3;
  --f-blue-soft: #eaf0ff;
  --f-green: #117a65;
  --f-green-soft: #e3f5ee;
  --f-teal: #087c8c;
  --f-teal-soft: #e2f5f6;
  --f-amber: #b76b09;
  --f-amber-soft: #fff1d9;
  --f-red: #b42318;
  --f-red-soft: #fee9e7;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  color: var(--f-ink);
  background: var(--f-bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.f-app *,
.f-app *::before,
.f-app *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.f-app button,
.f-app input,
.f-app select,
.f-app textarea {
  font: inherit;
}

.f-app button {
  cursor: pointer;
}

.f-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  background: var(--f-navy);
  border-right: 1px solid #24344c;
  z-index: 20;
}

.f-brand {
  min-height: 72px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.f-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #2a64e8;
  font-size: 13px;
  font-weight: 800;
}

.f-brand strong,
.f-brand small {
  display: block;
}

.f-brand strong {
  font-size: 15px;
}

.f-brand small {
  margin-top: 3px;
  color: #aebbd0;
  font-size: 11px;
}

.f-account {
  margin: 14px 14px 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.f-account span,
.f-account strong,
.f-account small {
  display: block;
}

.f-account span {
  color: #9eabc0;
  font-size: 11px;
}

.f-account strong {
  margin-top: 4px;
  font-size: 16px;
}

.f-account small {
  margin-top: 5px;
  overflow: hidden;
  color: #c5cede;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-nav {
  flex: 1;
  padding: 6px 10px;
  overflow-y: auto;
}

.f-nav button {
  width: 100%;
  min-height: 42px;
  margin: 2px 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  color: #bdc8d8;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}

.f-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.f-nav button.active {
  color: #fff;
  background: #2459d3;
  box-shadow: inset 3px 0 0 #7dd3fc;
}

.f-nav-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}

.f-side-foot {
  padding: 14px;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.f-side-foot button {
  padding: 7px 0;
  border: 0;
  color: #b9c5d5;
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.f-env {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 4px;
  color: #a5ddf7;
  font-size: 10px;
}

.f-workspace {
  min-width: 0;
}

.f-topbar {
  position: sticky;
  top: 0;
  min-height: 72px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--f-line);
  background: rgba(255, 255, 255, 0.96);
  z-index: 15;
}

.f-topbar > div:first-child strong,
.f-topbar > div:first-child span {
  display: block;
}

.f-topbar > div:first-child strong {
  font-size: 18px;
}

.f-topbar > div:first-child span {
  margin-top: 4px;
  color: var(--f-muted);
  font-size: 11px;
}

.f-top-controls {
  display: flex;
  align-items: end;
  gap: 8px;
}

.f-top-controls label {
  display: grid;
  gap: 3px;
  color: var(--f-muted);
  font-size: 10px;
}

.f-top-controls input,
.f-top-controls select {
  height: 36px;
  min-width: 132px;
  padding: 0 10px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  color: var(--f-ink);
  background: #fff;
  font-size: 12px;
}

.f-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  color: var(--f-ink);
  background: #fff;
  font-size: 18px;
}

.f-main {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 22px 24px 42px;
}

.f-alert,
.f-period-warning {
  margin-bottom: 14px;
  padding: 10px 13px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 12px;
}

.f-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.f-alert button {
  border: 0;
  color: inherit;
  background: transparent;
  font-weight: 700;
}

.f-alert.danger {
  border-color: #f2b8b3;
  color: var(--f-red);
  background: var(--f-red-soft);
}

.f-alert.success {
  border-color: #a9dbc9;
  color: #08604e;
  background: var(--f-green-soft);
}

.f-period-warning {
  border-color: #edc98d;
  color: #875008;
  background: var(--f-amber-soft);
}

.f-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(400px, 5fr) minmax(620px, 7fr);
  gap: 14px;
  align-items: stretch;
}

.f-dashboard-secondary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(620px, 1.45fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.f-dashboard-band {
  margin-top: 22px;
}

.f-dashboard-band-head {
  min-height: 52px;
  margin-bottom: 10px;
  padding: 0 2px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.f-dashboard-band-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--f-blue);
  font-size: 10px;
  font-weight: 800;
}

.f-dashboard-band-head h2,
.f-dashboard-band-head p {
  margin: 0;
}

.f-dashboard-band-head h2 {
  font-size: 19px;
}

.f-dashboard-band-head p {
  max-width: 520px;
  color: var(--f-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.f-band-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.f-trend-mode {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border: 1px solid #dbe1ea;
  border-radius: 7px;
  background: #eef2f6;
}

.f-trend-mode button {
  min-width: 56px;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #6d7889;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.f-trend-mode button:hover {
  color: #17243a;
}

.f-trend-mode button[aria-pressed="true"] {
  color: #173f9d;
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 36, 58, 0.14);
}

.f-goal-panel,
.f-team-goal {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  border-radius: 8px;
  color: #fff;
  background: #2459d3;
  box-shadow: 0 8px 24px rgba(36, 89, 211, 0.2);
}

.f-goal-panel {
  min-height: 270px;
  padding: 24px;
  grid-template-columns: 1fr 132px;
  align-items: center;
}

.f-goal-panel::after,
.f-team-goal::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 250px;
  height: 250px;
  border: 36px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.f-kicker {
  display: block;
  color: #cfe0ff;
  font-size: 11px;
  font-weight: 750;
}

.f-goal-copy h2 {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.2;
}

.f-goal-copy p {
  min-height: 44px;
  margin: 0 0 22px;
  color: #dce8ff;
  font-size: 13px;
  line-height: 1.7;
}

.f-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.f-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #fff;
}

.f-goal-values {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.f-goal-values strong {
  font-size: 22px;
}

.f-goal-values span {
  color: #d7e4ff;
  font-size: 11px;
}

.f-ring {
  --progress: 0;
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--progress) * 1%), rgba(255, 255, 255, 0.18) 0);
  z-index: 1;
}

.f-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #2459d3;
}

.f-ring strong,
.f-ring span {
  position: relative;
  display: block;
  text-align: center;
}

.f-ring strong {
  font-size: 22px;
}

.f-ring span {
  margin-top: 2px;
  color: #dce8ff;
  font-size: 10px;
}

.f-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.f-metric {
  min-width: 0;
  min-height: 128px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--f-line);
  border-left: 4px solid #9aa6b8;
  border-radius: 8px;
  background: var(--f-panel);
}

.f-metric.primary {
  border-left-color: var(--f-blue);
  background: linear-gradient(180deg, #fff, #f6f8ff);
}

.f-metric.success {
  border-left-color: var(--f-green);
}

.f-metric.teal {
  border-left-color: var(--f-teal);
}

.f-metric.amber {
  border-left-color: var(--f-amber);
}

.f-metric.danger {
  border-left-color: var(--f-red);
}

.f-metric > span {
  color: var(--f-muted);
  font-size: 11px;
}

.f-metric > strong {
  margin: 8px 0;
  overflow-wrap: anywhere;
  font-size: 23px;
  line-height: 1.1;
}

.f-metric > small {
  color: var(--f-muted);
  font-size: 10px;
  line-height: 1.5;
}

.f-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--f-line);
  border-radius: 8px;
  background: var(--f-panel);
  box-shadow: 0 3px 12px rgba(20, 32, 51, 0.045);
}

.f-section-head,
.f-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.f-section-head {
  margin-bottom: 15px;
}

.f-section-head .f-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.f-inline-actions {
  display: flex;
  gap: 7px;
}

.f-section-head h3,
.f-section-head p,
.f-page-head h2,
.f-page-head p {
  margin: 0;
}

.f-section-head h3 {
  font-size: 15px;
}

.f-section-head p,
.f-page-head p {
  margin-top: 4px;
  color: var(--f-muted);
  font-size: 11px;
  line-height: 1.5;
}

.f-product {
  min-height: 224px;
}

.f-product-list {
  display: grid;
  gap: 12px;
}

.f-product-list > div {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 11px;
}

.f-product-list > div > span {
  width: 9px;
  height: 34px;
  border-radius: 3px;
  background: var(--f-blue);
}

.f-product-list > div.green > span {
  background: var(--f-green);
}

.f-product-list > div.amber > span {
  background: var(--f-amber);
}

.f-product-list section {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
}

.f-product-list strong {
  font-size: 12px;
}

.f-product-list small,
.f-product-list em {
  color: var(--f-muted);
  font-size: 10px;
  font-style: normal;
}

.f-product-list section > div {
  height: 5px;
  overflow: hidden;
  grid-column: 1 / -1;
  border-radius: 3px;
  background: var(--f-line-soft);
}

.f-product-list section > div i {
  height: 100%;
  display: block;
  background: var(--f-blue);
}

.f-product-list .green i {
  background: var(--f-green);
}

.f-product-list .amber i {
  background: var(--f-amber);
}

.f-product-list em {
  grid-column: 1 / -1;
}

.f-team-progress {
  min-height: 224px;
}

.f-team-target-list {
  display: grid;
  gap: 15px;
}

.f-team-target-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
}

.f-team-target-list span strong,
.f-team-target-list span small {
  display: block;
}

.f-team-target-list span strong {
  font-size: 12px;
}

.f-team-target-list span small,
.f-team-target-list em {
  color: var(--f-muted);
  font-size: 10px;
  font-style: normal;
}

.f-team-target-list > div > div {
  height: 6px;
  overflow: hidden;
  grid-column: 1 / -1;
  border-radius: 3px;
  background: var(--f-line-soft);
}

.f-team-target-list i {
  height: 100%;
  display: block;
  background: var(--f-green);
}

.f-two-column {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  align-items: start;
}

.f-channel-bars {
  display: grid;
  gap: 12px;
}

.f-channel-bars > div {
  display: grid;
  grid-template-columns: 110px 1fr 54px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.f-channel-bars > div > div {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--f-line-soft);
}

.f-channel-bars i {
  height: 100%;
  display: block;
  background: var(--f-teal);
}

.f-channel-bars strong {
  text-align: right;
  font-size: 11px;
}

.f-wechat-strip {
  margin-top: 17px;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--f-line-soft);
}

.f-wechat-strip span {
  padding: 7px 9px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  color: var(--f-muted);
  background: #fafbfc;
  font-size: 10px;
}

.f-wechat-strip strong {
  margin-right: 7px;
  color: var(--f-ink);
}

.f-traffic-history {
  margin-top: 12px;
  border-top: 1px solid var(--f-line-soft);
}

.f-traffic-history > div {
  min-height: 37px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--f-line-soft);
  font-size: 10px;
}

.f-traffic-history > div:last-child {
  border-bottom: 0;
}

.f-traffic-history span {
  overflow: hidden;
  color: var(--f-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-traffic-history em {
  color: var(--f-teal);
  font-style: normal;
  font-weight: 750;
}

.f-channel-history {
  margin-top: 12px;
  padding: 12px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  background: #fafbfc;
}

.f-channel-history > strong {
  color: var(--f-ink);
  font-size: 11px;
}

.f-channel-history > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--f-muted);
  font-size: 10px;
}

.f-channel-history em {
  flex: 0 0 auto;
  color: var(--f-ink);
  font-style: normal;
}

.f-action-list {
  display: grid;
  gap: 8px;
}

.f-action-list button {
  min-height: 63px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--f-line-soft);
  border-radius: 6px;
  color: var(--f-ink);
  background: #fafbfc;
  text-align: left;
}

.f-action-list button:hover {
  border-color: #b7c6ea;
  background: #f4f7ff;
}

.f-action-list strong {
  font-size: 12px;
}

.f-action-list span {
  color: var(--f-muted);
  font-size: 10px;
  line-height: 1.5;
}

.f-manager-summary {
  display: grid;
  grid-template-columns: minmax(620px, 7fr) minmax(460px, 5fr);
  gap: 14px;
}

.f-team-goal {
  min-height: 236px;
  padding: 24px;
  grid-template-columns: 1fr 130px 160px;
  align-items: center;
  background: #173458;
  box-shadow: 0 8px 24px rgba(20, 48, 82, 0.18);
}

.f-team-goal h2 {
  margin: 8px 0;
  font-size: 30px;
}

.f-team-goal h2 small {
  color: #bcd1e8;
  font-size: 15px;
}

.f-team-goal p {
  margin: 0 0 20px;
  color: #bed0e3;
  font-size: 11px;
}

.f-progress.large {
  height: 9px;
}

.f-ring.large {
  width: 124px;
}

.f-ring.large::before {
  background: #173458;
}

.f-team-goal-side {
  position: relative;
  display: grid;
  gap: 10px;
  z-index: 1;
}

.f-team-goal-side span {
  padding: 10px 11px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #bcd1e8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.f-team-goal-side strong {
  color: #fff;
  font-size: 13px;
}

.f-metrics.manager {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.f-metrics.manager .f-metric {
  min-height: 113px;
}

.f-metrics.manager .f-metric > strong {
  font-size: 19px;
}

.f-two-column.manager-layout {
  grid-template-columns: minmax(600px, 1.7fr) minmax(300px, 0.8fr);
}

.f-manager-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.f-manager-charts > :nth-child(1),
.f-manager-charts > :nth-child(2) {
  grid-column: 1 / -1;
}

.f-chart-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.f-chart-head {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.f-chart-head h3,
.f-chart-head p {
  margin: 0;
}

.f-chart-head h3 {
  font-size: 16px;
}

.f-chart-head p {
  max-width: 520px;
  margin-top: 5px;
  color: var(--f-muted);
  font-size: 11px;
  line-height: 1.5;
}

.f-chart-head > span {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  text-align: right;
}

.f-chart-head > span small {
  color: var(--f-muted);
  font-size: 10px;
}

.f-chart-head > span strong {
  color: var(--f-blue);
  font-size: 18px;
}

.f-echart {
  width: 100%;
  height: var(--chart-height, 320px);
  min-width: 0;
  margin-top: 6px;
}

.f-chart-tooltip {
  min-width: 210px;
  max-width: min(420px, 78vw);
  color: #344054;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.f-chart-tooltip > strong {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 12px;
}

.f-chart-tooltip > div {
  max-height: 300px;
  display: grid;
  gap: 5px;
  overflow-y: auto;
}

.f-chart-tooltip > div > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(92px, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}

.f-chart-tooltip em {
  overflow: hidden;
  color: #667085;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-chart-tooltip b {
  color: #172033;
  font-weight: 750;
  white-space: nowrap;
}

.f-line-chart {
  min-height: 240px;
  margin-top: 7px;
}

.f-line-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.f-chart-grid line {
  stroke: #e7ebf0;
  stroke-width: 1;
}

.f-chart-grid text,
.f-chart-x text {
  fill: #7a8697;
  font-size: 9px;
}

.f-chart-hit {
  fill: transparent;
  stroke: transparent;
}

.f-chart-legend,
.f-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: #526174;
  font-size: 9px;
}

.f-chart-legend span,
.f-bar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.f-chart-legend i,
.f-bar-legend i {
  width: 17px;
  height: 3px;
  border-radius: 2px;
}

.f-chart-insight {
  margin: auto 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--f-line-soft);
  color: #356b5f;
  font-size: 10px;
  line-height: 1.55;
}

.f-chart-insight.warning {
  color: #9a5a09;
}

.f-sales-bars {
  margin-top: 19px;
  display: grid;
  gap: 13px;
}

.f-sales-bar-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(86px, 0.82fr) minmax(140px, 1.65fr) 64px;
  align-items: center;
  gap: 10px;
}

.f-sales-bar-name {
  min-width: 0;
}

.f-sales-bar-name strong,
.f-sales-bar-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-sales-bar-name strong {
  font-size: 10px;
}

.f-sales-bar-name small {
  margin-top: 2px;
  color: var(--f-muted);
  font-size: 8px;
}

.f-sales-bar-data {
  min-width: 0;
}

.f-sales-bar-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf0f4;
}

.f-sales-bar-track i,
.f-sales-bar-track b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
}

.f-sales-bar-track i {
  background: #87a7ed;
}

.f-sales-bar-track b {
  background: #15977c;
}

.f-sales-bar-data > span {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 7px;
  color: var(--f-muted);
  font-size: 8px;
}

.f-sales-bar-data > span strong {
  color: var(--f-ink);
  font-size: 9px;
}

.f-sales-bar-row > em {
  color: var(--f-blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  text-align: right;
}

.f-bar-legend {
  margin-top: 16px;
}

.f-bar-legend span:first-child i {
  background: #87a7ed;
}

.f-bar-legend span:last-child i {
  background: #15977c;
}

.f-stack {
  display: grid;
  gap: 14px;
}

.f-page-head {
  min-height: 62px;
  margin-bottom: 14px;
}

.f-page-head h2 {
  font-size: 20px;
}

.f-page-head > div:last-child {
  display: flex;
  gap: 8px;
}

.f-button {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--f-blue);
  border-radius: 6px;
  color: #fff;
  background: var(--f-blue);
  font-size: 12px;
  font-weight: 700;
}

.f-button:hover {
  background: #1e4dbd;
}

.f-button.secondary {
  border-color: var(--f-line);
  color: var(--f-ink);
  background: #fff;
}

.f-button.secondary:hover {
  border-color: #aebbd0;
  background: #f8fafc;
}

.f-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.f-button svg,
.f-mini-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.f-mini-button {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  color: #36516f;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}

.f-mini-button:hover {
  border-color: #9db6e5;
  color: var(--f-blue);
  background: #f7faff;
}

.f-mini-button.primary {
  border-color: var(--f-blue);
  color: #fff;
  background: var(--f-blue);
  box-shadow: 0 3px 9px rgba(36, 89, 211, .16);
}

.f-mini-button.primary:hover {
  border-color: #1e4dbd;
  color: #fff;
  background: #1e4dbd;
}

.f-entry-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: var(--f-blue);
  background: var(--f-blue-soft);
}

.f-entry-icon svg {
  width: 16px;
  height: 16px;
}

.f-filterbar {
  margin-bottom: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(130px, 0.7fr));
  gap: 9px;
  border: 1px solid var(--f-line);
  border-radius: 8px;
  background: var(--f-panel);
}

.f-filterbar.compact {
  grid-template-columns: minmax(240px, 1fr) 180px 200px;
}

.f-filterbar label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.f-filterbar label > span {
  color: var(--f-muted);
  font-size: 10px;
}

.f-filterbar input,
.f-filterbar select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  color: var(--f-ink);
  background: #fff;
  font-size: 11px;
}

.f-summary-row {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--f-line);
  border-radius: 8px;
  background: var(--f-panel);
}

.f-summary-row.refund {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.f-summary-row > div {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--f-line-soft);
}

.f-summary-row > div:last-child {
  border-right: 0;
}

.f-summary-row span,
.f-summary-row strong {
  display: block;
}

.f-summary-row strong small {
  margin-top: 4px;
  display: block;
  color: var(--f-muted);
  font-size: 9px;
  font-weight: 500;
}

.f-summary-row span {
  color: var(--f-muted);
  font-size: 10px;
}

.f-summary-row strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.f-integration-health {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #cbdcf7;
  border-radius: 8px;
  background: #f5f8fd;
}

.f-integration-health.is-degraded {
  border-color: #f4c98b;
  background: #fff9ef;
}

.f-integration-health > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--f-line-soft);
}

.f-integration-health > div:last-child { border-right: 0; }
.f-integration-health span,
.f-integration-health strong,
.f-integration-health small { display: block; }
.f-integration-health span { color: var(--f-muted); font-size: 10px; }
.f-integration-health strong { margin-top: 5px; font-size: 15px; }
.f-integration-health small { margin-top: 4px; color: var(--f-muted); font-size: 9px; overflow-wrap: anywhere; }

.table-panel {
  padding: 0;
  overflow: hidden;
}

.f-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.f-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 11px;
}

.f-table.compact {
  min-width: 700px;
}

.f-wechat-table {
  min-width: 960px;
  table-layout: fixed;
}

.f-wechat-table th:nth-child(1) { width: 11%; }
.f-wechat-table th:nth-child(2) { width: 15%; }
.f-wechat-table th:nth-child(3) { width: 13%; }
.f-wechat-table th:nth-child(4) { width: 11%; }
.f-wechat-table th:nth-child(5) { width: 14%; }
.f-wechat-table th:nth-child(6) { width: 16%; }
.f-wechat-table th:nth-child(7) { width: 7%; }
.f-wechat-table th:nth-child(8) { width: 13%; }

.f-wechat-table td:nth-child(6) > span {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.f-table th,
.f-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--f-line-soft);
  text-align: left;
  vertical-align: middle;
}

.f-table th {
  position: sticky;
  top: 0;
  color: #5b6678;
  background: #f7f9fb;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.f-table tbody tr:hover {
  background: #fafcff;
}

.f-table tbody tr:last-child td {
  border-bottom: 0;
}

.f-table td strong,
.f-table td small {
  display: block;
}

.f-table td strong {
  font-size: 11px;
}

.f-table td small {
  max-width: 210px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--f-muted);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-table td .f-danger {
  color: var(--f-red);
}

.f-row-actions {
  display: flex;
  gap: 4px;
}

.f-row-actions button,
.f-link-button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--f-line);
  border-radius: 5px;
  color: var(--f-blue);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.f-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.f-link-button.danger {
  border-color: #efc4bf;
  color: var(--f-red);
}

.f-link-button svg {
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}

.f-delete-warning {
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 5px;
  border: 1px solid #efc4bf;
  border-radius: 6px;
  color: #7b241c;
  background: var(--f-red-soft);
  font-size: 10px;
  line-height: 1.55;
}

.f-delete-warning strong,
.f-delete-warning span {
  display: block;
}

.f-attachment-link {
  padding: 0;
  border: 0;
  color: var(--f-blue);
  background: transparent;
  font-size: 9px;
}

.f-status-button {
  min-width: 62px;
  height: 28px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
}

.f-status-button.paid {
  border-color: #96d2bd;
  color: #0b6553;
  background: var(--f-green-soft);
}

.f-status-button.pending {
  border-color: #e7bf7d;
  color: #8a5208;
  background: var(--f-amber-soft);
}

.f-badge {
  width: fit-content;
  max-width: 150px;
  padding: 3px 7px;
  display: inline-block;
  overflow: hidden;
  border-radius: 4px;
  color: #526174;
  background: #eef1f5;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-badge.active,
.f-badge.issued,
.f-badge.completed,
.f-badge.gm_confirmed,
.f-badge.finance_paid {
  color: #0b6553;
  background: var(--f-green-soft);
}

.f-badge.pending,
.f-badge.submitted,
.f-badge.draft,
.f-badge.supervisor_confirmed {
  color: #8a5208;
  background: var(--f-amber-soft);
}

.f-badge.void,
.f-badge.red,
.f-badge.reversed {
  color: var(--f-red);
  background: var(--f-red-soft);
}

.f-badge.reviewed {
  color: #1d4db3;
  background: var(--f-blue-soft);
}

.f-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.f-team-target-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.f-team-target-grid article {
  display: grid;
  gap: 7px;
}

.f-team-target-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.f-team-target-grid article > div span,
.f-team-target-grid article small,
.f-team-target-grid article em {
  color: var(--f-muted);
  font-size: 10px;
  font-style: normal;
}

.f-team-target-grid article > strong {
  font-size: 20px;
}

.f-review-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--f-line);
  border-top: 3px solid var(--f-teal);
  border-radius: 8px;
  background: var(--f-panel);
}

.f-review-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.f-review-card > div:first-child small {
  color: var(--f-muted);
  font-size: 9px;
}

.f-review-card h3 {
  margin: 14px 0 8px;
  font-size: 15px;
}

.f-review-card > p {
  min-height: 58px;
  margin: 0;
  color: #4d596c;
  font-size: 11px;
  line-height: 1.7;
}

.f-review-card dl {
  margin: 14px 0 0;
  padding-top: 12px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--f-line-soft);
}

.f-review-card dl div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px;
}

.f-review-card dt,
.f-review-card dd {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.f-review-card dt {
  color: var(--f-muted);
}

.f-card-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f-page-head > .f-card-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.f-section-head .f-card-actions {
  margin-top: 0;
  align-items: flex-end;
}

.f-compact-search {
  display: grid;
  gap: 4px;
  color: var(--f-muted);
  font-size: 10px;
  font-weight: 700;
}

.f-compact-search input {
  width: min(260px, 42vw);
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  background: #fff;
  color: var(--f-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}

.f-detail-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.f-detail-list div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--f-line);
}

.f-detail-list div:last-child {
  border-bottom: 0;
}

.f-detail-list dt,
.f-detail-list dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.f-detail-list dt {
  color: var(--f-muted);
  font-weight: 700;
}

.f-subnav {
  margin-bottom: 14px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--f-line);
}

.f-subnav button {
  padding: 10px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--f-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.f-subnav button.active {
  border-bottom-color: var(--f-blue);
  color: var(--f-blue);
}

.f-goal-cards {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.f-goal-cards article {
  padding: 18px;
  border: 1px solid var(--f-line);
  border-radius: 8px;
  background: var(--f-panel);
}

.f-goal-cards span,
.f-goal-cards strong,
.f-goal-cards small,
.f-goal-cards em {
  display: block;
}

.f-goal-cards span,
.f-goal-cards small,
.f-goal-cards em {
  color: var(--f-muted);
  font-size: 10px;
  font-style: normal;
}

.f-goal-cards strong {
  margin: 8px 0 3px;
  font-size: 22px;
}

.f-goal-cards div {
  height: 6px;
  margin: 14px 0 7px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--f-line-soft);
}

.f-goal-cards i {
  height: 100%;
  display: block;
  background: var(--f-blue);
}

.f-own-head {
  margin-bottom: 14px;
  padding: 15px 16px 0;
  border: 1px solid var(--f-line);
  border-radius: 8px;
  background: var(--f-panel);
}

.f-own-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.f-own-head > div strong {
  font-size: 16px;
}

.f-own-head > div span {
  color: var(--f-muted);
  font-size: 10px;
}

.f-own-head nav {
  margin-top: 12px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}

.f-own-head nav button {
  padding: 9px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--f-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.f-own-head nav button.active {
  border-bottom-color: var(--f-blue);
  color: var(--f-blue);
}

.f-two-column.accounts {
  grid-template-columns: minmax(0, 1fr);
}

.f-personnel-section {
  margin-bottom: 16px;
}

.f-personnel-section > .f-section-head {
  margin-bottom: 10px;
  padding: 0 2px;
}

.f-personnel-list {
  display: grid;
  gap: 10px;
}

.f-personnel-record {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--f-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 32, 51, 0.045);
}

.f-personnel-record.is-inactive {
  background: #f8fafc;
}

.f-personnel-head,
.f-personnel-head > div,
.f-personnel-actions,
.f-personnel-actions > div,
.f-personnel-subhead {
  display: flex;
  align-items: center;
}

.f-personnel-head,
.f-personnel-actions,
.f-personnel-subhead {
  justify-content: space-between;
  gap: 14px;
}

.f-personnel-head > div {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.f-personnel-head > div > span {
  color: var(--f-muted);
  font-size: 10px;
  font-weight: 700;
}

.f-personnel-name {
  min-width: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  border: 0;
  color: var(--f-ink);
  text-align: left;
  background: transparent;
}

.f-personnel-name:hover strong,
.f-personnel-name:focus-visible strong {
  color: var(--f-blue);
}

.f-personnel-name:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.35);
  outline-offset: 4px;
}

.f-personnel-name strong {
  font-size: 17px;
}

.f-personnel-name span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--f-blue);
  font-size: 10px;
  font-weight: 700;
}

.f-personnel-name svg {
  width: 12px;
  height: 12px;
}

.f-personnel-name.is-static span {
  color: var(--f-muted);
}

.f-personnel-facts {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--f-line-soft);
  border-left: 1px solid var(--f-line-soft);
}

.f-personnel-facts div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--f-line-soft);
  border-bottom: 1px solid var(--f-line-soft);
}

.f-personnel-facts dt,
.f-personnel-facts dd {
  margin: 0;
}

.f-personnel-facts dt,
.f-personnel-motto > span,
.f-personnel-subhead > span,
.f-personnel-wechat-row em {
  color: var(--f-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.f-personnel-facts dd {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--f-ink);
  font-size: 11px;
  font-weight: 750;
}

.f-personnel-motto {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  border-right: 1px solid var(--f-line-soft);
  border-bottom: 1px solid var(--f-line-soft);
  border-left: 1px solid var(--f-line-soft);
  background: #fbfcfe;
}

.f-personnel-motto p {
  margin: 0;
  color: #445166;
  font-size: 11px;
  line-height: 1.6;
}

.f-personnel-wechat {
  margin-top: 12px;
}

.f-personnel-subhead strong {
  color: var(--f-blue);
  font-size: 10px;
}

.f-personnel-wechat > div:last-child {
  margin-top: 7px;
  border-top: 1px solid var(--f-line-soft);
}

.f-personnel-wechat-row {
  min-width: 0;
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) repeat(2, minmax(120px, 0.8fr)) minmax(150px, 1fr) minmax(180px, 1.3fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--f-line-soft);
}

.f-personnel-wechat-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.f-personnel-wechat-row strong,
.f-personnel-wechat-row small {
  overflow-wrap: anywhere;
  font-size: 10px;
}

.f-personnel-wechat-row small {
  color: var(--f-muted);
}

.f-personnel-empty {
  margin: 0;
  padding: 10px 0;
  color: var(--f-muted);
  font-size: 10px;
}

.f-personnel-actions {
  padding-top: 12px;
}

.f-personnel-actions > span {
  color: var(--f-muted);
  font-size: 9px;
}

.f-personnel-actions .f-account-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.f-service-staff-head {
  margin-bottom: 16px;
}

.f-service-staff-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.f-service-status-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--f-line-soft);
  border-left: 1px solid var(--f-line-soft);
}

.f-service-status-summary > div {
  padding: 14px;
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--f-line-soft);
  border-bottom: 1px solid var(--f-line-soft);
}

.f-service-status-summary span {
  color: var(--f-muted);
  font-size: 10px;
}

.f-service-status-summary strong {
  color: var(--f-ink);
  font-size: 22px;
}

.f-income-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.f-cost-overview {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: 14px;
}

.f-cost-hero {
  min-height: 190px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border-radius: 8px;
  color: #fff;
  background: #173458;
  box-shadow: 0 8px 24px rgba(23, 52, 88, 0.18);
}

.f-cost-hero > div:first-child {
  display: grid;
  gap: 5px;
}

.f-cost-hero span,
.f-cost-hero p {
  color: #c5d6e8;
  font-size: 10px;
}

.f-cost-hero p {
  margin: 0;
}

.f-cost-hero > div > strong {
  font-size: 30px;
}

.f-cost-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.f-cost-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #48b792;
}

.f-cost-hero.is-warning .f-cost-track i {
  background: #f0b642;
}

.f-cost-hero footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.f-cost-hero footer span {
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.f-cost-hero footer strong {
  color: #fff;
  font-size: 15px;
}

.f-cost-breakdown {
  display: grid;
  align-content: start;
}

.f-cost-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.f-cost-components span {
  padding: 12px;
  display: grid;
  gap: 5px;
  border-left: 3px solid #c6d3e8;
  color: var(--f-muted);
  background: #f7f9fc;
  font-size: 10px;
}

.f-cost-components span:nth-child(2) {
  border-left-color: #43a58a;
}

.f-cost-components span:nth-child(3) {
  border-left-color: #e2a62b;
}

.f-cost-components span:nth-child(4) {
  border-left-color: #d16b55;
}

.f-cost-components strong {
  color: var(--f-ink);
  font-size: 16px;
}

.f-cost-formula {
  margin: 12px 0 0;
  color: var(--f-muted);
  font-size: 10px;
}

.f-income-total {
  min-height: 128px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: #173458;
}

.f-income-total span,
.f-income-total small {
  color: #c5d6e8;
  font-size: 10px;
}

.f-income-total strong {
  margin: 7px 0;
  font-size: 27px;
}

.f-calculation {
  margin-top: 14px;
}

.f-calculation-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.f-calculation-row span {
  padding: 13px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  color: var(--f-muted);
  background: #fafbfc;
  font-size: 10px;
}

.f-calculation-row strong {
  color: var(--f-ink);
  font-size: 17px;
}

.f-calculation-row i {
  color: var(--f-muted);
  font-size: 18px;
  font-style: normal;
}

.f-calculation-note {
  margin: 12px 0 0;
  color: var(--f-muted);
  font-size: 11px;
  line-height: 1.6;
}

.f-profile-layout {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
}

.f-profile-card {
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: #173458;
  text-align: center;
}

.f-avatar {
  width: 62px;
  height: 62px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 24px;
  font-weight: 800;
}

.f-profile-card h2 {
  margin: 0;
  font-size: 21px;
}

.f-profile-card > span {
  display: block;
  margin-top: 5px;
  color: #bed0e3;
  font-size: 10px;
}

.f-profile-card blockquote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #e1ebf5;
  font-size: 12px;
  line-height: 1.7;
}

.f-profile-data dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.f-profile-data dl div {
  min-height: 69px;
  padding: 11px 14px;
  border-right: 1px solid var(--f-line-soft);
  border-bottom: 1px solid var(--f-line-soft);
}

.f-profile-data dl div:nth-child(2n) {
  border-right: 0;
}

.f-profile-data dt,
.f-profile-data dd {
  margin: 0;
}

.f-profile-data dt {
  color: var(--f-muted);
  font-size: 10px;
}

.f-profile-data dd {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.f-wechat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.f-wechat-cards > div {
  padding: 13px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  background: #fafbfc;
}

.f-wechat-cards strong {
  font-size: 12px;
}

.f-wechat-cards span,
.f-wechat-cards small {
  color: var(--f-muted);
  font-size: 10px;
}

.f-modal-backdrop {
  position: fixed;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 100;
}

.f-modal {
  width: min(780px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.f-modal-head {
  min-height: 75px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--f-line);
}

.f-modal-head h2,
.f-modal-head p {
  margin: 0;
}

.f-modal-head h2 {
  font-size: 18px;
}

.f-modal-head p {
  margin-top: 4px;
  color: var(--f-muted);
  font-size: 10px;
}

.f-modal-head button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  color: var(--f-muted);
  background: #fff;
  font-size: 21px;
}

.f-form-grid {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.f-form-grid > label:not(.f-check) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.f-form-grid > label > span,
.f-chip-field legend {
  color: #4c596c;
  font-size: 10px;
  font-weight: 700;
}

.f-form-grid .wide {
  grid-column: 1 / -1;
}

.f-app .hidden {
  display: none !important;
}

.f-form-grid input:not([type="checkbox"]),
.f-form-grid select,
.f-form-grid textarea {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  color: var(--f-ink);
  background: #fff;
  font-size: 12px;
  outline: none;
}

.f-form-grid textarea {
  resize: vertical;
  line-height: 1.55;
}

.f-form-grid input:focus,
.f-form-grid select:focus,
.f-form-grid textarea:focus {
  border-color: var(--f-blue);
  box-shadow: 0 0 0 3px rgba(36, 89, 211, 0.1);
}

.f-modal > form > .f-table-scroll {
  margin: 18px 20px;
  max-height: min(52vh, 430px);
}

.f-modal .f-table input {
  width: 100%;
  min-width: 105px;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  color: var(--f-ink);
  background: #fff;
  font-size: 11px;
}

.f-modal .f-table input:focus {
  border-color: var(--f-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(36, 89, 211, 0.1);
}

.f-chip-field {
  margin: 0;
  padding: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
}

.f-chip-field legend {
  padding: 0 5px;
}

.f-chip-field label {
  position: relative;
  display: block;
}

.f-chip-field input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.f-chip-field span {
  min-height: 31px;
  padding: 0 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--f-line);
  border-radius: 5px;
  color: var(--f-muted);
  background: #fff;
  font-size: 10px;
  cursor: pointer;
}

.f-chip-field input:checked + span {
  border-color: var(--f-blue);
  color: var(--f-blue);
  background: var(--f-blue-soft);
  font-weight: 750;
}

.f-chip-field input:focus-visible + span {
  border-color: var(--f-blue);
  box-shadow: 0 0 0 3px rgba(36, 89, 211, 0.14);
}

.f-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--f-ink);
  font-size: 11px;
}

.f-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--f-blue);
}

.f-retention {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #edd4a9;
  border-radius: 6px;
  color: #795010;
  background: #fff9ed;
  font-size: 10px;
}

.f-form-help {
  margin: -2px 0 0;
  padding: 8px 10px;
  border-left: 3px solid var(--f-green);
  color: var(--f-muted);
  background: #f3f8f6;
  font-size: 10px;
  line-height: 1.55;
}

.f-modal-actions {
  padding: 13px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--f-line);
  background: #fafbfc;
}

.f-form-error {
  margin: 0 20px 12px;
  padding: 9px 11px;
  border: 1px solid #efb0aa;
  border-radius: 6px;
  color: var(--f-red);
  background: var(--f-red-soft);
  font-size: 11px;
}

.f-file-gallery {
  min-height: 160px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.f-file-gallery > p {
  grid-column: 1 / -1;
  margin: 0;
  place-self: center;
  color: var(--f-muted);
  font-size: 11px;
}

.f-file-gallery figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  background: #fafbfc;
}

.f-file-preview {
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background: #eef1f5;
  cursor: zoom-in;
}

.f-file-preview:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.45);
  outline-offset: -3px;
}

.f-file-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: #eef1f5;
  transition: transform 160ms ease;
}

.f-file-preview:hover img {
  transform: scale(1.025);
}

.f-file-gallery figcaption {
  padding: 8px;
}

.f-file-gallery figcaption strong,
.f-file-gallery figcaption span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-file-gallery figcaption strong {
  font-size: 10px;
}

.f-file-gallery figcaption span {
  margin-top: 3px;
  color: var(--f-muted);
  font-size: 9px;
}

.f-image-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  padding: 14px;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 18, 0.92);
}

.f-image-viewer {
  width: min(1500px, 100%);
  height: min(940px, calc(100vh - 28px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: #0d121b;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
}

.f-image-viewer-head {
  position: relative;
  min-height: 60px;
  padding: 10px 12px 10px 16px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto 36px;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #131a25;
}

.f-image-viewer-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.f-image-viewer-title strong {
  font-size: 13px;
}

.f-image-viewer-title span {
  overflow: hidden;
  color: #aeb8c8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-image-viewer-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.f-image-viewer-tools button,
.f-image-viewer-tools a,
.f-image-viewer-close {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #e8edf5;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.f-image-viewer-tools button:hover,
.f-image-viewer-tools a:hover,
.f-image-viewer-tools button:focus-visible,
.f-image-viewer-tools a:focus-visible,
.f-image-viewer-close:hover,
.f-image-viewer-close:focus-visible {
  border-color: #6f9cff;
  color: #fff;
  background: rgba(47, 111, 237, 0.28);
  outline: 0;
}

.f-image-viewer-tools button:disabled {
  opacity: 0.32;
  cursor: default;
}

.f-image-viewer-tools output {
  width: 48px;
  color: #cbd5e1;
  font-size: 10px;
  text-align: center;
}

.f-image-viewer-tools svg {
  width: 17px;
  height: 17px;
}

.f-image-viewer-close svg {
  width: 17px;
  height: 17px;
}

.f-image-viewer-media {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background-color: #090d14;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.035) 75%), linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.035) 75%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.f-image-viewer-canvas {
  min-width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
}

.f-image-viewer-canvas img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
}

.f-image-viewer footer {
  min-height: 36px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9daabd;
  background: #131a25;
  font-size: 9px;
}

.f-profile-request-banner {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid #ecd9a8;
  border-radius: 6px;
  background: #fffaf0;
}

.f-profile-request-banner strong,
.f-profile-request-banner span {
  display: block;
}

.f-profile-request-banner strong {
  color: #7a4c08;
  font-size: 11px;
}

.f-profile-request-banner span,
.f-profile-request-banner small {
  margin-top: 3px;
  color: #7d6a4e;
  font-size: 9px;
}

.f-close-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
}

.f-action-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.f-close-rule ol {
  margin: 0;
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
  list-style: none;
}

.f-close-rule li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.f-close-rule li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #ccd7e6;
  border-radius: 50%;
  color: #2459d3;
  background: #f5f8ff;
  font-size: 11px;
  font-weight: 800;
}

.f-close-rule li strong,
.f-close-rule li small {
  display: block;
}

.f-close-rule li strong {
  color: #172033;
  font-size: 11px;
}

.f-close-rule li small {
  margin-top: 2px;
  color: var(--f-muted);
  font-size: 9px;
  line-height: 1.55;
}

.f-close-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.f-close-card {
  overflow: hidden;
  border-top: 3px solid #d6deea;
}

.f-close-card.prepared {
  border-top-color: #d79a20;
}

.f-close-card.closed {
  border-top-color: #0f9478;
}

.f-close-card-head,
.f-close-card-foot {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.f-close-card-head {
  border-bottom: 1px solid var(--f-line);
}

.f-close-card-head span,
.f-close-card-head h3,
.f-close-card-head small,
.f-close-card-foot strong,
.f-close-card-foot small {
  display: block;
}

.f-close-card-head > div > span {
  color: #2459d3;
  font-size: 10px;
  font-weight: 800;
}

.f-close-card-head h3 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 16px;
}

.f-close-card-head small {
  margin-top: 4px;
  color: var(--f-muted);
  font-size: 9px;
}

.f-close-checks {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.f-close-checks button {
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  text-align: left;
  background: #f8fafc;
}

.f-close-checks button.blocked {
  border-color: #f0d2cc;
  background: #fff8f6;
  cursor: pointer;
}

.f-close-checks button.done {
  border-color: #cfe6de;
  background: #f4fbf8;
}

.f-close-checks span,
.f-close-checks strong {
  display: block;
}

.f-close-checks span {
  color: var(--f-muted);
  font-size: 9px;
}

.f-close-checks strong {
  margin-top: 4px;
  color: #172033;
  font-size: 11px;
}

.f-close-checks .blocked strong {
  color: #b54736;
}

.f-close-card-foot {
  align-items: center;
  background: #fafbfc;
  border-top: 1px solid var(--f-line);
}

.f-close-card-foot strong {
  color: #172033;
  font-size: 11px;
}

.f-close-card-foot small {
  max-width: 420px;
  margin-top: 3px;
  color: var(--f-muted);
  font-size: 9px;
  line-height: 1.5;
}

.f-close-confirm {
  padding: 12px 14px;
  border: 1px solid #d6e0ef;
  border-radius: 6px;
  background: #f6f9fe;
}

.f-close-confirm strong,
.f-close-confirm span {
  display: block;
}

.f-close-confirm strong {
  color: #172033;
  font-size: 11px;
}

.f-close-confirm span {
  margin-top: 4px;
  color: var(--f-muted);
  font-size: 9px;
}

.f-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #172033;
  background: #f4f6f9;
}

.f-loading strong {
  margin-top: 8px;
  font-size: 15px;
}

.f-loading span {
  color: #667085;
  font-size: 11px;
}

.f-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbe4f7;
  border-top-color: #2459d3;
  border-radius: 50%;
  animation: f-spin 0.8s linear infinite;
}

.f-dashboard-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.f-dashboard-charts > :first-child {
  grid-column: 1 / -1;
}

.f-compact-chart {
  min-height: 0;
}

.f-bar-team {
  fill: #b7c4d8;
}

.f-bar-personal {
  fill: #2459d3;
}

.f-bar-flow {
  fill: #f2bf45;
  opacity: 0.82;
}

.f-line-personal,
.f-line-team {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-line-personal {
  stroke: #2459d3;
  stroke-width: 3;
}

.f-line-team {
  stroke: #0f9478;
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.f-chart-legend i.team,
.f-chart-legend i.team-line {
  background: #0f9478;
}

.f-chart-legend i.personal,
.f-chart-legend i.personal-line {
  background: #2459d3;
}

.f-chart-legend i.team {
  height: 8px;
  background: #b7c4d8;
}

.f-chart-legend i.personal {
  height: 8px;
}

.f-chart-legend i.team-line {
  background: repeating-linear-gradient(90deg, #0f9478 0 6px, transparent 6px 10px);
}

.f-chart-legend i.flow {
  height: 8px;
  background: #f2bf45;
}

.f-axis-note {
  fill: #7a8697;
  font-size: 9px;
}

.f-insight-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(520px, 1.3fr) minmax(340px, 0.8fr);
  gap: 14px;
}

.f-insight-grid.manager-insights {
  grid-template-columns: minmax(600px, 1.35fr) minmax(420px, 0.9fr);
}

.f-analytics-row {
  margin-top: 14px;
  grid-template-columns: minmax(620px, 1.5fr) minmax(300px, 0.7fr);
}

.f-manager-cycles {
  grid-template-columns: minmax(340px, 0.75fr) minmax(600px, 1.4fr);
}

.f-weekly-panel .f-table-scroll,
.f-channel-performance .f-table-scroll {
  max-height: 340px;
}

.f-channel-performance .f-echart {
  margin-bottom: 12px;
}

.f-leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.f-leader-grid > div {
  min-width: 0;
  padding: 11px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  border: 1px solid var(--f-line-soft);
  border-radius: 6px;
  background: #fbfcfe;
}

.f-leader-grid > div > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #17243a;
  font-size: 10px;
  font-weight: 800;
}

.f-leader-grid section,
.f-leader-grid section > * {
  min-width: 0;
  display: block;
}

.f-leader-grid small {
  color: var(--f-muted);
  font-size: 9px;
}

.f-leader-grid strong {
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.f-leader-grid em {
  color: var(--f-blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.f-channel-compare-bars {
  margin-bottom: 16px;
  display: grid;
  gap: 9px;
}

.f-channel-compare-bars > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(140px, 1.2fr) 126px;
  align-items: center;
  gap: 10px;
}

.f-channel-compare-bars span strong,
.f-channel-compare-bars span small {
  display: block;
}

.f-channel-compare-bars span strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.f-channel-compare-bars span small {
  margin-top: 2px;
  color: var(--f-muted);
  font-size: 9px;
}

.f-channel-compare-bars > div > div {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--f-line-soft);
}

.f-channel-compare-bars i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #0f9478;
}

.f-channel-compare-bars em {
  color: #445166;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

.f-cycle-stack {
  display: grid;
  gap: 16px;
}

.f-cycle-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.f-cycle-summary > span {
  min-width: 0;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 7px 1fr;
  gap: 3px 7px;
  border: 1px solid var(--f-line-soft);
  border-radius: 6px;
  background: #fafbfc;
}

.f-cycle-summary i {
  width: 7px;
  height: 24px;
  grid-row: span 2;
  border-radius: 3px;
}

.f-cycle-summary strong,
.f-cycle-summary em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-cycle-summary strong {
  font-size: 10px;
}

.f-cycle-summary em {
  color: var(--f-muted);
  font-size: 9px;
  font-style: normal;
}

.f-cycle-stack > div {
  display: grid;
  grid-template-columns: 1fr 105px 48px;
  align-items: center;
  gap: 10px;
}

.f-cycle-stack > div > span {
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--f-line-soft);
}

.f-cycle-stack > div > span i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--cycle-color);
}

.f-cycle-stack section strong,
.f-cycle-stack section small {
  display: block;
}

.f-cycle-stack section strong {
  font-size: 11px;
}

.f-cycle-stack section small {
  color: var(--f-muted);
  font-size: 9px;
}

.f-cycle-stack em {
  color: #445166;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.f-product-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.f-product-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.f-product-chart-grid .f-echart {
  margin-top: 0;
}

.f-product-summary {
  margin-top: 6px;
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--f-line-soft);
}

.f-product-summary strong {
  color: var(--f-blue);
  font-size: 14px;
}

.f-product-summary span {
  color: var(--f-muted);
  font-size: 10px;
}

.f-product-visuals > div {
  display: grid;
  place-items: center;
  gap: 7px;
}

.f-product-donut {
  position: relative;
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.f-product-donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--f-panel);
}

.f-product-donut i {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
  font-style: normal;
}

.f-product-donut strong {
  font-size: 13px;
}

.f-product-donut small,
.f-product-visuals > div > em {
  color: var(--f-muted);
  font-size: 9px;
  font-style: normal;
}

.f-product-legend {
  margin-top: 13px;
  display: grid;
  gap: 7px;
}

.f-product-legend > div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
}

.f-product-legend > div > i {
  width: 8px;
  height: 22px;
  border-radius: 3px;
}

.f-product-legend span strong,
.f-product-legend span small {
  display: block;
}

.f-product-legend span strong {
  font-size: 10px;
}

.f-product-legend span small,
.f-product-legend > div > em {
  color: var(--f-muted);
  font-size: 8px;
  font-style: normal;
}

.f-field-mark {
  margin-left: 6px;
  color: #7a8697;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
}

.f-field-mark.required,
.f-chip-field legend em {
  color: #bd3d32;
}

.f-chip-field legend em {
  margin-left: 5px;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
}

.f-muted {
  color: var(--f-muted);
  font-size: 10px;
}

@keyframes f-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1380px) {
  .f-cost-overview {
    grid-template-columns: 1fr;
  }

  .f-app {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .f-dashboard-grid,
  .f-manager-summary,
  .f-dashboard-secondary {
    grid-template-columns: 1fr;
  }

  .f-two-column.manager-layout {
    grid-template-columns: 1fr;
  }

  .f-close-overview {
    grid-template-columns: 1fr;
  }

  .f-manager-charts {
    grid-template-columns: 1fr;
  }

  .f-manager-charts > :nth-child(1),
  .f-manager-charts > :nth-child(2) {
    grid-column: auto;
  }

  .f-insight-grid,
  .f-insight-grid.manager-insights,
  .f-analytics-row,
  .f-manager-cycles {
    grid-template-columns: 1fr;
  }

  .f-income-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .f-income-total {
    grid-column: span 2;
  }

  .f-filterbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .f-filterbar .search {
    grid-column: span 2;
  }
}

@media (max-width: 960px) {
  .f-app {
    display: block;
  }

  .f-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    border-right: 0;
  }

  .f-brand {
    min-height: 62px;
    border-bottom: 0;
  }

  .f-account {
    margin: 8px;
  }

  .f-account small {
    max-width: 300px;
  }

  .f-nav {
    grid-column: 1 / -1;
    padding: 5px 10px 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(144px, 1fr));
    gap: 4px;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .f-nav button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    justify-content: center;
  }

  .f-side-foot {
    padding: 8px 12px;
    border-top: 0;
  }

  .f-side-foot button {
    text-align: right;
  }

  .f-topbar {
    position: relative;
  }

  .f-two-column,
  .f-two-column.accounts {
    grid-template-columns: 1fr;
  }

  .f-metrics.manager.f-service-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-goal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-summary-row.refund {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .f-integration-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-integration-health > div:nth-child(2n) { border-right: 0; }
  .f-integration-health > div:nth-child(n + 3) { border-top: 1px solid var(--f-line-soft); }

  .f-cost-components,
  .f-cost-hero footer {
    grid-template-columns: 1fr;
  }

  .f-sidebar {
    grid-template-columns: 1fr auto;
  }

  .f-brand {
    padding-left: 14px;
  }

  .f-account {
    display: none;
  }

  .f-side-foot .f-env {
    display: none;
  }

  .f-topbar {
    padding: 11px 14px;
    display: grid;
  }

  .f-top-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 36px;
  }

  .f-top-controls label,
  .f-top-controls input,
  .f-top-controls select {
    min-width: 0;
    width: 100%;
  }

  .f-main {
    padding: 14px 12px 32px;
  }

  .f-team-progress {
    min-height: 0;
  }

  .f-goal-panel {
    min-height: 250px;
    padding: 20px;
    grid-template-columns: 1fr 100px;
  }

  .f-goal-copy h2 {
    font-size: 23px;
  }

  .f-ring {
    width: 96px;
  }

  .f-ring strong {
    font-size: 18px;
  }

  .f-metrics,
  .f-metrics.manager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-manager-summary {
    gap: 10px;
  }

  .f-team-goal {
    min-height: 0;
    padding: 19px;
    grid-template-columns: 1fr 104px;
  }

  .f-team-goal-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .f-team-goal h2 {
    font-size: 24px;
  }

  .f-manager-charts {
    margin-top: 10px;
    gap: 10px;
  }

  .f-dashboard-charts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .f-dashboard-charts > :first-child {
    grid-column: auto;
  }

  .f-dashboard-band {
    margin-top: 18px;
  }

  .f-dashboard-band-head {
    min-height: 0;
    display: grid;
    align-items: start;
    gap: 5px;
  }

  .f-dashboard-band-head p {
    text-align: left;
  }

  .f-band-controls {
    align-items: flex-start;
    justify-content: space-between;
  }

  .f-product-chart-grid {
    grid-template-columns: 1fr;
  }

  .f-insight-grid,
  .f-analytics-row {
    margin-top: 10px;
    gap: 10px;
  }

  .f-leader-grid {
    grid-template-columns: 1fr;
  }

  .f-channel-compare-bars > div {
    grid-template-columns: minmax(100px, 0.85fr) 1fr;
  }

  .f-channel-compare-bars em {
    grid-column: 2;
    text-align: left;
  }

  .f-chart-panel {
    min-height: 0;
    padding: 15px;
  }

  .f-echart {
    min-height: 270px;
  }

  .f-echart-product {
    min-height: 220px;
  }

  .f-line-chart {
    min-height: 0;
    overflow-x: auto;
  }

  .f-line-chart svg {
    min-width: 0;
  }

  .f-chart-grid text,
  .f-chart-x text {
    font-size: 16px;
  }

  .f-filterbar,
  .f-filterbar.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-filterbar .search {
    grid-column: 1 / -1;
  }

  .f-summary-row,
  .f-summary-row.refund {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-summary-row > div:nth-child(2n) {
    border-right: 0;
  }

  .f-summary-row > div:nth-child(n + 3) {
    border-top: 1px solid var(--f-line-soft);
  }

  .f-review-grid {
    grid-template-columns: 1fr;
  }

  .f-income-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-income-total {
    grid-column: 1 / -1;
  }

  .f-profile-layout {
    grid-template-columns: 1fr;
  }

  .f-profile-card {
    text-align: left;
  }

  .f-avatar {
    margin-left: 0;
  }

  .f-wechat-cards {
    grid-template-columns: 1fr;
  }

  .f-calculation-row {
    grid-template-columns: 1fr;
  }

  .f-calculation-row i {
    display: none;
  }

  .f-page-head {
    align-items: flex-start;
  }

  .f-page-head > div:last-child {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .f-form-grid {
    grid-template-columns: 1fr;
  }

  .f-form-grid .wide {
    grid-column: auto;
  }

  .f-modal-backdrop {
    padding: 8px;
  }

  .f-modal {
    max-height: calc(100vh - 16px);
  }

  .f-file-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-image-viewer-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .f-image-viewer-title {
    width: 100%;
    padding-right: 46px;
    box-sizing: border-box;
  }

  .f-image-viewer-tools {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .f-image-viewer-close {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .f-close-grid,
  .f-action-list.compact {
    grid-template-columns: 1fr;
  }

  .f-close-card-head,
  .f-close-card-foot,
  .f-profile-request-banner {
    display: grid;
  }

  .f-close-checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .f-integration-health { grid-template-columns: 1fr; }
  .f-integration-health > div { border-right: 0; border-top: 1px solid var(--f-line-soft); }
  .f-integration-health > div:first-child { border-top: 0; }

  .f-brand-mark {
    width: 34px;
    height: 34px;
  }

  .f-brand strong {
    font-size: 13px;
  }

  .f-nav-icon {
    display: none;
  }

  .f-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .f-nav button {
    width: 100%;
    min-width: 0;
    padding: 0 3px;
    justify-content: center;
    font-size: 10px;
  }

  .f-topbar > div:first-child strong {
    font-size: 16px;
  }

  .f-topbar > div:first-child span {
    overflow-wrap: anywhere;
  }

  .f-top-controls {
    grid-template-columns: 1fr 36px;
  }

  .f-top-controls label:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }

  .f-goal-panel {
    grid-template-columns: 1fr;
  }

  .f-goal-panel .f-ring {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 78px;
  }

  .f-goal-panel .f-ring strong {
    font-size: 15px;
  }

  .f-goal-panel .f-ring span {
    display: none;
  }

  .f-goal-copy {
    padding-right: 55px;
  }

  .f-metric {
    min-height: 116px;
    padding: 13px;
  }

  .f-metric > strong {
    font-size: 19px;
  }

  .f-service-metric-table {
    min-width: 0;
  }

  .f-team-goal {
    grid-template-columns: 1fr;
  }

  .f-team-goal .f-ring {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 84px;
  }

  .f-team-goal > div:first-child {
    padding-right: 58px;
  }

  .f-chart-head {
    display: grid;
    gap: 8px;
  }

  .f-chart-head > span {
    text-align: left;
  }

  .f-sales-bar-row {
    grid-template-columns: 78px minmax(112px, 1fr);
  }

  .f-sales-bar-row > em {
    grid-column: 2;
    text-align: left;
  }

  .f-channel-bars > div {
    grid-template-columns: 82px 1fr 45px;
  }

  .f-page-head {
    display: grid;
  }

  .f-page-head > div:last-child {
    justify-content: flex-start;
  }

  .f-button {
    padding: 0 10px;
  }

  .f-filterbar,
  .f-filterbar.compact {
    grid-template-columns: 1fr;
  }

  .f-filterbar .search {
    grid-column: auto;
  }

  .f-goal-cards {
    grid-template-columns: 1fr;
  }

  .f-income-grid {
    grid-template-columns: 1fr;
  }

  .f-inline-actions {
    align-items: stretch;
  }

  .f-inline-actions .f-button {
    min-width: 76px;
  }

  .f-file-gallery {
    grid-template-columns: 1fr;
  }

  .f-image-viewer-backdrop {
    padding: 0;
  }

  .f-image-viewer {
    width: 100%;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .f-image-viewer-head {
    padding: 10px;
    gap: 8px;
  }

  .f-image-viewer-tools button,
  .f-image-viewer-tools a,
  .f-image-viewer-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .f-image-viewer footer {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .f-profile-data dl {
    grid-template-columns: 1fr;
  }

  .f-profile-data dl div {
    border-right: 0;
  }
}

/* Traffic ledger and review workflow */
.f-traffic-quick {
  padding: 17px 18px 18px;
  border-top: 0;
  box-shadow: inset 3px 0 0 var(--f-blue), 0 3px 12px rgba(20, 32, 51, 0.045);
}

.f-traffic-quick > header {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.f-traffic-quick > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.f-traffic-quick > header > div > div {
  display: grid;
  gap: 2px;
}

.f-traffic-quick > header > div > div > span {
  color: var(--f-blue);
  font-size: 10px;
  font-weight: 800;
}

.f-traffic-quick > header strong { font-size: 16px; }
.f-traffic-quick > header small { color: var(--f-muted); font-size: 10px; }

.f-traffic-quick-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 13px 12px;
  align-items: end;
}

.f-traffic-quick-grid > label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.f-traffic-quick-grid > label > span,
.f-traffic-quick-grid .f-chip-field legend {
  color: #4c596c;
  font-size: 10px;
  font-weight: 700;
}

.f-traffic-quick-grid input:not([type="radio"]),
.f-traffic-quick-grid select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  color: var(--f-ink);
  background: #fff;
  font-size: 12px;
  outline: none;
}

.f-traffic-quick-grid input:focus,
.f-traffic-quick-grid select:focus {
  border-color: var(--f-blue);
  box-shadow: 0 0 0 3px rgba(36, 89, 211, .1);
}

.f-traffic-date { grid-column: span 2; }
.f-traffic-time { grid-column: span 3; }
.f-traffic-work-wechat { grid-column: span 3; }
.f-traffic-channel-field { grid-column: span 4; }
.f-traffic-customer { grid-column: span 8; }
.f-traffic-type { grid-column: span 4; }
.f-traffic-intent { grid-column: span 4; }
.f-traffic-note { grid-column: span 4; }
.f-traffic-service-match { grid-column: span 4; }
.f-traffic-actions { grid-column: span 4; }

.f-channel-guidance {
  display: block;
  color: var(--f-muted);
  font-size: 10px;
  line-height: 1.45;
}

.f-channel-guidance.override {
  color: #a45c08;
  font-weight: 700;
}

.f-duplicate-warning {
  margin-top: 2px;
  padding: 8px 9px;
  display: grid;
  gap: 2px;
  border: 1px solid #efb0aa;
  border-radius: 5px;
  color: #9f2f25;
  background: #fff2f0;
  font-size: 10px;
  line-height: 1.5;
}

.f-duplicate-warning[hidden] { display: none; }
.f-duplicate-warning strong { font-size: 11px; }
.f-traffic-quick-grid select.is-duplicate,
.f-form-grid select.is-duplicate { border-color: #d85246; color: #b5362c; background: #fff5f3; font-weight: 800; }

.f-traffic-type {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 4px;
  color: #16684f;
  background: #e8f7f1;
  font-size: 10px;
  font-weight: 800;
}
.f-traffic-type.invalid { color: #5f6b7c; background: #eef1f5; }
.f-traffic-type.duplicate { color: #b5362c; background: #fff0ee; }
.f-traffic-type.deleted { color: #7a8697; background: #eceff3; text-decoration: line-through; }
.f-record-void { color: #a13931 !important; font-weight: 800; }
.f-traffic-table tr.is-duplicate { background: #fffafa; }
.f-traffic-table tr.is-deleted { opacity: .64; background: #f6f7f9; }
.f-traffic-table tr.is-deleted td strong { text-decoration: line-through; }

.f-quick-actions {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.f-quick-actions span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--f-muted);
  font-size: 10px;
}

.f-quick-actions span svg {
  width: 13px;
  height: 13px;
  color: #d78212;
}

.f-quick-actions .f-button { min-width: 112px; }

.f-traffic-summary article:nth-child(1) { border-top: 3px solid var(--f-blue); }
.f-traffic-summary article:nth-child(2) { border-top: 3px solid var(--f-teal); }
.f-traffic-summary article:nth-child(3) { border-top: 3px solid #f59e0b; }
.f-traffic-summary article:nth-child(4) { border-top: 3px solid var(--f-green); }

.f-traffic-table td {
  vertical-align: top;
}

.f-traffic-table td strong,
.f-traffic-table td small {
  display: block;
}

.f-traffic-table td small {
  margin-top: 4px;
  color: var(--f-muted);
}

.f-ledger-count,
.f-ledger-pagination {
  padding: 12px 14px;
  border-top: 1px solid var(--f-line-soft);
  color: var(--f-muted);
  font-size: 12px;
}

.f-ledger-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.f-ledger-pagination > div {
  display: flex;
  gap: 6px;
}

.f-ledger-pagination button {
  min-width: 68px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--f-line);
  border-radius: 5px;
  color: var(--f-ink);
  background: #fff;
  font-weight: 700;
}

.f-ledger-pagination button:hover:not(:disabled) {
  border-color: var(--f-blue);
  color: var(--f-blue);
}

.f-ledger-pagination button:disabled {
  color: #a8b0bf;
  background: #f4f6f8;
  cursor: not-allowed;
}

.f-intent {
  min-width: 74px;
  display: inline-grid;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid var(--f-line);
  border-radius: 6px;
  background: #f8fafc;
}

.f-intent strong { font-size: 13px; }
.f-intent small { margin: 0 !important; font-size: 10px; }
.f-intent.level-5 { color: #9f271e; border-color: #f2c0bc; background: #fff0ee; }
.f-intent.level-4 { color: #9a5a08; border-color: #f4d298; background: #fff7e8; }
.f-intent.level-3 { color: #166b5c; border-color: #a9ded2; background: #effbf7; }

.f-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.f-input-action input {
  min-width: 0;
  border-radius: 6px 0 0 6px !important;
}

.f-input-action button {
  min-width: 76px;
  padding: 0 12px;
  border: 1px solid var(--f-blue);
  border-radius: 0 6px 6px 0;
  color: #fff;
  background: var(--f-blue);
  font-weight: 700;
}

.f-traffic-match,
.f-traffic-lock {
  min-height: 68px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--f-line);
  border-radius: 7px;
  background: #f8fafc;
}

.f-traffic-match > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--f-blue);
  background: var(--f-blue-soft);
}

.f-traffic-match svg { width: 17px; height: 17px; }
.f-traffic-match strong,
.f-traffic-match p,
.f-traffic-lock strong,
.f-traffic-lock span { display: block; }
.f-traffic-match p { margin: 3px 0 0; color: var(--f-muted); font-size: 12px; }
.f-traffic-match.success { border-color: #a9ded2; background: #f0fbf7; }
.f-traffic-match.success > span { color: var(--f-green); background: #dff5ec; }
.f-traffic-match.warning { border-color: #f2d49f; background: #fff8eb; }
.f-traffic-match.warning > span { color: var(--f-amber); background: #ffedc9; }
.f-traffic-lock { display: grid; }
.f-traffic-lock span { color: var(--f-muted); font-size: 12px; }

.f-intent-picker {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.f-intent-picker legend { grid-column: 1 / -1; }
.f-intent-picker label { min-width: 0; }
.f-intent-picker label span { justify-content: center; }

.f-review-workflow {
  display: grid;
  gap: 16px;
}

.f-auto-insights {
  border-top: 3px solid var(--f-blue);
}

.f-insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.f-insight-list > div {
  min-height: 78px;
  padding: 11px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--f-line-soft);
  border-radius: 6px;
  background: #f8fafc;
}

.f-insight-list > div > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  color: var(--f-blue);
  background: var(--f-blue-soft);
}

.f-insight-list svg { width: 15px; height: 15px; }
.f-insight-list p { margin: 1px 0 0; color: #3d495c; font-size: 12px; line-height: 1.65; }
.f-insight-list .is-up > span { color: var(--f-green); background: var(--f-green-soft); }
.f-insight-list .is-down > span { color: var(--f-red); background: var(--f-red-soft); }
.f-insight-list .is-flat > span { color: var(--f-amber); background: var(--f-amber-soft); }

.f-period-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.f-period-review-grid section {
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--f-line-soft);
  border-radius: 6px;
  background: #fbfcfe;
}

.f-period-review-grid span {
  color: var(--f-blue);
  font-size: 11px;
  font-weight: 800;
}

.f-period-review-grid p {
  margin: 7px 0 0;
  color: #465269;
  font-size: 12px;
  line-height: 1.7;
}

.f-self-review-list {
  display: grid;
  gap: 10px;
}

.f-self-review-list > article {
  border: 1px solid var(--f-line);
  border-radius: 7px;
  overflow: hidden;
}

.f-self-review-list > article > header {
  padding: 10px 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: #27364d;
}

.f-self-review-list > article > header small { color: #cbd5e1; }
.f-self-review-list dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-self-review-list dl div { min-height: 104px; padding: 12px; border-right: 1px solid var(--f-line-soft); border-bottom: 1px solid var(--f-line-soft); }
.f-self-review-list dt { color: var(--f-muted); font-size: 11px; font-weight: 700; }
.f-self-review-list dd { margin: 6px 0 0; color: #344054; font-size: 12px; line-height: 1.7; }

.f-empty-inline {
  padding: 18px;
  display: grid;
  gap: 4px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  color: var(--f-muted);
  text-align: center;
}

.f-empty-inline strong { color: var(--f-ink); }

.f-month-report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 4px solid #f59e0b;
}

.f-month-report h3 { margin: 4px 0; }
.f-month-report p { margin: 0; color: var(--f-muted); font-size: 12px; }
.f-month-report > div:last-child { display: flex; gap: 8px; }

.f-review-subnav small {
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(36, 89, 211, 0.1);
}

.f-review-card {
  border-top: 3px solid #d5dce7;
}

.f-review-card:has(.f-outcome.success) { border-top-color: var(--f-green); }
.f-review-card:has(.f-outcome.failure) { border-top-color: var(--f-red); }
.f-review-card:has(.f-outcome.mixed) { border-top-color: #f59e0b; }

.f-outcome {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.f-outcome.success { color: var(--f-green); background: var(--f-green-soft); }
.f-outcome.failure { color: var(--f-red); background: var(--f-red-soft); }
.f-outcome.mixed { color: var(--f-amber); background: var(--f-amber-soft); }

.f-case-lessons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
}

.f-case-lessons div { min-height: 106px; }
.f-case-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--f-muted); font-size: 11px; }
.f-case-meta > span:not(.f-status) { padding: 4px 7px; border-radius: 4px; background: #f2f4f7; }

.f-material-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.f-material-card { display: grid; gap: 11px; border-top: 3px solid var(--f-teal); }
.f-material-card header,
.f-material-card footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.f-material-card header span { color: var(--f-teal); font-size: 11px; font-weight: 800; }
.f-material-card header small,
.f-material-card footer span { color: var(--f-muted); font-size: 11px; }
.f-material-card h3,
.f-material-card p { margin: 0; }
.f-material-card > p { color: var(--f-muted); font-size: 12px; }
.f-material-card > section { padding: 11px; border-left: 3px solid #f59e0b; background: #fffaf0; }
.f-material-card > section span { color: var(--f-amber); font-size: 11px; font-weight: 800; }
.f-material-card > section p { margin-top: 5px; color: #3d495c; font-size: 12px; line-height: 1.7; }
.f-material-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.f-material-tags span { padding: 4px 7px; border-radius: 4px; color: #41516a; background: #edf2f8; font-size: 10px; }

.f-discussion-layout {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 16px;
}

.f-discussion-case,
.f-comments {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--f-line);
  border-radius: 7px;
}

.f-discussion-case h3 { margin: 10px 0 5px; }
.f-discussion-case > p { color: var(--f-muted); font-size: 12px; }
.f-discussion-case dl { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-discussion-case dl div { padding: 9px; background: #f8fafc; }
.f-discussion-case dt { color: var(--f-blue); font-size: 11px; font-weight: 800; }
.f-discussion-case dd { margin: 5px 0 0; color: #445166; font-size: 12px; line-height: 1.65; }
.f-comments { display: grid; gap: 12px; align-content: start; }
.f-comments h3 { margin: 0; }
.f-comments > div { max-height: 330px; display: grid; gap: 8px; overflow-y: auto; }
.f-comments article { padding: 10px; border-radius: 6px; background: #f6f8fb; }
.f-comments article header { display: flex; justify-content: space-between; gap: 10px; }
.f-comments article small { color: var(--f-muted); font-size: 10px; }
.f-comments article p { margin: 6px 0 0; color: #445166; font-size: 12px; line-height: 1.65; }

.f-muted { color: var(--f-muted); }
.f-empty-cell { padding: 26px !important; color: var(--f-muted); text-align: center !important; }

.f-service-hero {
  position: relative;
  min-height: 138px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  border-radius: 8px;
  border-top: 3px solid #f6a820;
  background: #1f55b8;
  box-shadow: 0 10px 24px rgba(28, 77, 163, .14);
}

.f-service-hero h2 { margin: 6px 0; font-size: 24px; letter-spacing: 0; }
.f-service-hero p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.7; }
.f-service-hero .f-kicker { color: #ffd58a; }
.f-service-hero-metric { min-width: 190px; padding: 8px 0 8px 26px; display: grid; border-left: 1px solid rgba(255, 255, 255, .25); }
.f-service-hero-metric strong { font-size: 36px; line-height: 1; }
.f-service-hero-metric span { margin-top: 8px; font-size: 13px; font-weight: 800; }
.f-service-hero-metric small { margin-top: 5px; color: rgba(255, 255, 255, .7); font-size: 11px; }

.f-service-entry { margin-top: 14px; padding: 18px; border-top: 0; box-shadow: inset 3px 0 0 #f59e0b, 0 3px 12px rgba(20, 32, 51, 0.045); }
.f-service-entry > header,
.f-service-entry > header > div { display: flex; align-items: center; gap: 10px; }
.f-service-entry > header { justify-content: space-between; }
.f-service-entry > header > div > div { display: grid; gap: 2px; }
.f-service-entry > header > div > div > span { color: var(--f-amber); font-size: 10px; font-weight: 800; }
.f-service-entry .f-entry-icon { color: var(--f-amber); background: var(--f-amber-soft); }
.f-service-entry > header strong { font-size: 17px; }
.f-service-entry > header small { color: var(--f-muted); font-size: 11px; }
.f-service-entry-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 12px;
  align-items: end;
}
.f-service-entry-grid > label { min-width: 0; display: grid; gap: 6px; }
.f-service-entry-grid > label > span { color: #4c596c; font-size: 10px; font-weight: 700; }
.f-service-entry-grid input:not([type="radio"]),
.f-service-entry-grid select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  color: var(--f-ink);
  background: #fff;
  font-size: 12px;
  outline: none;
}
.f-service-entry-grid input:focus,
.f-service-entry-grid select:focus { border-color: var(--f-blue); box-shadow: 0 0 0 3px rgba(36, 89, 211, .1); }
.f-service-remark { grid-column: span 3; }
.f-service-actions {
  grid-column: span 1 !important;
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
}
.f-service-actions span { text-align: right; }
.f-service-entry-grid .f-quick-actions { grid-column: 1 / -1; }

.f-service-summary { margin-top: 16px; }
.f-service-today-grid { margin-top: 16px; }
.f-service-task-list { display: grid; gap: 8px; }
.f-service-task-list > button {
  width: 100%;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--f-line-soft);
  border-radius: 6px;
  text-align: left;
  background: #fff;
}
.f-service-task-list > button:hover { border-color: #8fb1f0; background: #f7faff; }
.f-service-task-list span { color: var(--f-blue); font-size: 11px; font-weight: 800; }
.f-service-task-list strong { color: var(--f-ink); font-size: 12px; }
.f-service-task-list small { color: var(--f-muted); font-size: 10px; }

.f-service-case-list { display: grid; gap: 8px; }
.f-service-case-list article {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--f-line-soft);
  border-radius: 6px;
  background: #fff;
}
.f-service-case-list article > div { min-width: 0; display: grid; gap: 4px; }
.f-service-case-list article > div:last-child { flex: 0 0 auto; justify-items: end; }
.f-service-case-list article strong { overflow-wrap: anywhere; font-size: 12px; }
.f-service-case-list article small,
.f-service-case-list article > div:last-child > span { color: var(--f-muted); font-size: 10px; }

.f-service-followup-list { display: grid; gap: 9px; }
.f-service-followup-list article {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 175px;
  gap: 14px;
  border: 1px solid var(--f-line-soft);
  border-radius: 7px;
  background: #fff;
}
.f-service-followup-list article.is-mine { border-color: #a9c4f5; box-shadow: inset 3px 0 0 var(--f-blue); }
.f-service-followup-main { min-width: 0; display: grid; gap: 5px; }
.f-service-followup-main header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.f-service-followup-main header strong { overflow-wrap: anywhere; font-size: 12px; }
.f-service-followup-main p { margin: 0; color: var(--f-muted); font-size: 10px; }
.f-mine-badge { padding: 2px 6px; border-radius: 4px; color: #2459b6; background: #eaf1ff; font-size: 9px; font-weight: 800; }
.f-followup-times { display: flex; flex-wrap: wrap; gap: 5px; }
.f-followup-times span { padding: 3px 6px; border-radius: 4px; color: #5d697a; background: #f1f4f8; font-size: 9px; }
.f-service-followup-owner { display: grid; justify-items: end; align-content: center; gap: 4px; text-align: right; }
.f-service-followup-owner > span,
.f-service-followup-owner small { color: var(--f-muted); font-size: 9px; }
.f-service-followup-owner strong { font-size: 11px; }
.f-service-followup-owner button { margin-top: 4px; }
.f-service-followup-filter { grid-template-columns: minmax(180px, 280px); }

.f-service-method { display: inline-flex; padding: 4px 7px; border-radius: 4px; color: #2459b6; background: #eaf1ff; font-size: 10px; font-weight: 800; }
.f-service-method.leave_info { color: #9a5d00; background: #fff3d9; }
.f-service-method.opening_only { color: #5f6b7c; background: #eef1f5; }
.f-service-table td strong { display: block; }
.f-service-table td small { margin-top: 3px; display: block; color: var(--f-muted); }

.f-service-board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.f-service-rhythm { align-self: start; display: grid; gap: 10px; }
.f-service-rhythm h3 { margin: 0 0 4px; }
.f-service-rhythm div { padding: 11px; display: grid; gap: 4px; border-left: 3px solid #f59e0b; background: #fffaf0; }
.f-service-rhythm strong { font-size: 12px; }
.f-service-rhythm span { color: var(--f-muted); font-size: 10px; line-height: 1.6; }

.f-service-script-tabs { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.f-service-script-tabs button { padding: 7px 11px; border: 1px solid var(--f-line); border-radius: 5px; color: var(--f-muted); background: #fff; font-size: 11px; font-weight: 700; }
.f-service-script-tabs button.active { color: #fff; border-color: #2459d3; background: #2459d3; }
.f-service-script-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.f-service-script-card { min-width: 0; display: grid; gap: 10px; align-content: start; border-top: 3px solid #2f6fed; }
.f-service-script-card header,
.f-service-script-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.f-service-script-card header > span:first-child { color: var(--f-blue); font-size: 11px; font-weight: 800; }
.f-service-script-card h3,
.f-service-script-card p { margin: 0; }
.f-service-script-card h3 { font-size: 15px; }
.f-service-script-card > p { min-height: 94px; color: #445166; font-size: 12px; line-height: 1.75; }
.f-service-script-card > small { padding: 9px; color: #7a5b16; border-left: 3px solid #f59e0b; background: #fffaf0; font-size: 10px; line-height: 1.6; }
.f-service-script-card footer > span { color: var(--f-muted); font-size: 10px; }
.f-service-script-card footer > div { display: flex; gap: 6px; }
.f-subsection-head { margin-top: 22px; }

.f-service-metrics { margin-bottom: 16px; }
.f-metrics.manager.f-service-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-service-metric-table { min-width: 360px; table-layout: fixed; }
.f-service-metric-table th:first-child { width: 42%; }
.f-service-sla { min-height: 220px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.f-service-sla > div { padding: 18px; display: grid; gap: 6px; border: 1px solid var(--f-line); border-radius: 7px; text-align: center; background: #f8fafc; }
.f-service-sla strong { color: var(--f-blue); font-size: 28px; }
.f-service-sla span { color: var(--f-muted); font-size: 11px; }
.f-service-sla > small { grid-column: 1 / -1; color: var(--f-muted); text-align: center; }

.f-service-rule-list { display: grid; gap: 8px; }
.f-service-rule-list button { padding: 11px; display: grid; gap: 4px; border: 1px solid var(--f-line-soft); border-radius: 6px; text-align: left; background: #fff; }
.f-service-rule-list button:hover { border-color: #8fb1f0; }
.f-service-rule-list strong { color: var(--f-blue); font-size: 12px; }
.f-service-rule-list span,
.f-service-rule-list small { color: var(--f-muted); font-size: 10px; }
.f-service-governance > div:last-of-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f-service-governance > div:last-of-type span { padding: 12px; display: grid; gap: 4px; color: var(--f-muted); border: 1px solid var(--f-line-soft); background: #f8fafc; font-size: 10px; }
.f-service-governance > div:last-of-type strong { color: var(--f-ink); font-size: 18px; }
.f-service-governance footer { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }

.f-sales-service-panel { margin-bottom: 16px; padding: 17px 18px; box-shadow: inset 3px 0 0 #f59e0b, 0 3px 12px rgba(20, 32, 51, 0.045); }
.f-sales-service-panel > .f-section-head { margin-bottom: 13px; }
.f-section-kicker { display: block; margin-bottom: 3px; color: var(--f-amber); font-size: 9px; font-weight: 800; }
.f-count-pill { min-width: 50px; padding: 6px 10px; border-radius: 999px; color: #8b550d; background: var(--f-amber-soft); font-size: 11px; text-align: center; }
.f-sales-service-panel > div:last-child { display: grid; gap: 8px; }
.f-sales-service-panel article {
  min-height: 70px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e6eaf0;
  border-radius: 7px;
  background: #fbfcfe;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.f-sales-service-panel article:hover { border-color: #cbd8ec; background: #fff; box-shadow: 0 3px 10px rgba(20, 32, 51, .05); }
.f-sales-service-panel article > div { min-width: 0; }
.f-sales-service-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 9px; }
.f-sales-service-copy > span { grid-row: 1 / 3; align-self: center; }
.f-sales-service-copy > strong { overflow-wrap: anywhere; font-size: 12px; }
.f-sales-service-copy > small { grid-column: 2; color: var(--f-muted); font-size: 10px; }
.f-sales-service-copy .f-retained-contact { color: #8b550d; }
.f-sales-service-copy .f-followup-inline { color: #2459b6; line-height: 1.5; }
.f-sales-service-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 0 0 auto; }

.f-service-detail-head { padding: 14px; display: flex; justify-content: space-between; gap: 18px; border: 1px solid var(--f-line); border-radius: 7px; background: #f8fafc; }
.f-service-detail-head h3 { margin: 8px 0 4px; }
.f-service-detail-head p { margin: 0; color: var(--f-muted); font-size: 11px; }
.f-service-detail-grid { margin: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f-service-detail-grid div { padding: 10px; border: 1px solid var(--f-line-soft); }
.f-service-detail-grid dt { color: var(--f-muted); font-size: 10px; }
.f-service-detail-grid dd { margin: 5px 0 0; font-size: 12px; font-weight: 800; }
.f-service-timeline { margin-top: 16px; }
.f-service-timeline h3,
.f-service-linked h3 { margin: 0 0 12px; font-size: 14px; }
.f-service-timeline article { position: relative; padding: 0 0 16px 24px; display: grid; grid-template-columns: 1fr; }
.f-service-timeline article::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -3px; width: 1px; background: #d8e1ef; }
.f-service-timeline article:last-child::before { display: none; }
.f-service-timeline article > i { position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border: 3px solid #dfe9fb; border-radius: 50%; background: #2f6fed; }
.f-service-timeline article header { display: flex; justify-content: space-between; gap: 12px; }
.f-service-timeline article header span { color: var(--f-muted); font-size: 10px; }
.f-service-timeline article p { margin: 5px 0 0; color: #445166; font-size: 11px; line-height: 1.65; }
.f-service-timeline article small { margin-top: 4px; color: var(--f-blue); font-size: 10px; }
.f-service-linked { margin-top: 8px; padding: 12px; border-left: 3px solid var(--f-green); background: var(--f-green-soft); }
.f-service-linked > div { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; font-size: 11px; }
.f-modal-loading { min-height: 180px; display: grid; place-items: center; color: var(--f-muted); }
.f-button.danger { border-color: #d85246; color: #fff; background: #d85246; }
.f-button.danger:hover { background: #b83d33; }
.f-modal-action-spacer { flex: 1; }

.f-account-sales-fields,
.f-account-service-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.f-account-sales-fields > .wide,
.f-account-service-fields > .wide { grid-column: 1 / -1; }
.f-general-manager-note {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #bfd1fa;
  border-radius: 6px;
  color: #173b78;
  background: #f2f6ff;
}
.f-general-manager-note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--f-blue); }
.f-general-manager-note p { margin: 0; display: grid; gap: 4px; }
.f-general-manager-note strong { font-size: 12px; }
.f-general-manager-note span { color: #53657f; font-size: 10px; line-height: 1.6; }

@media (max-width: 980px) {
  .f-service-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-service-remark { grid-column: span 1; }
  .f-service-actions { grid-column: span 1 !important; }
  .f-service-script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-service-board { grid-template-columns: 1fr; }
  .f-traffic-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-traffic-date,
  .f-traffic-time,
  .f-traffic-work-wechat,
  .f-traffic-channel-field,
  .f-traffic-customer,
  .f-traffic-intent,
  .f-traffic-note,
  .f-traffic-service-match { grid-column: span 1; }
  .f-traffic-actions { grid-column: 1 / -1; }
  .f-quick-actions { justify-content: space-between; }
  .f-insight-list,
  .f-period-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-self-review-list dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-material-library { grid-template-columns: 1fr; }
  .f-discussion-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .f-service-hero { min-height: 0; padding: 18px; align-items: flex-start; flex-direction: column; }
  .f-service-hero h2 { font-size: 21px; }
  .f-service-hero-metric { width: 100%; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }
  .f-service-hero-metric strong { font-size: 36px; }
  .f-service-entry,
  .f-traffic-quick { padding: 14px; }
  .f-service-entry > header { align-items: flex-start; flex-direction: column; }
  .f-service-entry-grid { grid-template-columns: 1fr; }
  .f-service-entry-grid > * { grid-column: 1 !important; }
  .f-service-script-grid { grid-template-columns: 1fr; }
  .f-service-script-card > p { min-height: 0; }
  .f-service-case-list article,
  .f-sales-service-panel article { align-items: stretch; flex-direction: column; }
  .f-service-followup-list article { grid-template-columns: 1fr; }
  .f-service-followup-owner { justify-items: start; text-align: left; }
  .f-service-case-list article > div:last-child { width: 100%; justify-items: start; }
  .f-sales-service-panel article > div:last-child { flex-wrap: wrap; }
  .f-sales-service-actions { width: 100%; justify-content: flex-start; }
  .f-sales-service-actions .f-mini-button.primary { flex: 1; }
  .f-service-detail-grid { grid-template-columns: 1fr 1fr; }
  .f-service-timeline article header { flex-direction: column; gap: 2px; }
  .f-service-linked > div { grid-template-columns: 1fr; }
  .f-service-governance > div:last-of-type { grid-template-columns: 1fr; }
  .f-account-sales-fields,
  .f-account-service-fields { grid-template-columns: 1fr; }
  .f-service-table,
  .f-service-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .f-service-table thead { display: none; }
  .f-service-table tbody { padding: 8px; background: #f3f6fa; }
  .f-service-table tbody tr { margin-bottom: 8px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--f-line); border-radius: 7px; background: #fff; }
  .f-service-table td { padding: 9px !important; display: block; border: 0 !important; }
  .f-service-table td::before { content: attr(data-label); margin-bottom: 4px; display: block; color: var(--f-muted); font-size: 9px; font-weight: 700; }
  .f-service-table td[data-label="客户"],
  .f-service-table td[data-label="操作"] { grid-column: 1 / -1; }
  .f-service-table td[data-label="操作"] .f-row-actions { justify-content: flex-end; }
  .f-traffic-quick > header { align-items: flex-start; flex-direction: column; }
  .f-traffic-quick-grid { grid-template-columns: 1fr; }
  .f-traffic-quick-grid > * { grid-column: 1 !important; }
  .f-followup-times { display: grid; }
  .f-quick-actions { align-items: stretch; flex-direction: column; }
  .f-quick-actions .f-button { width: 100%; }
  .f-table-scroll:has(.f-traffic-table) { overflow: visible; }
  .f-traffic-table,
  .f-traffic-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .f-traffic-table thead { display: none; }
  .f-traffic-table tbody { padding: 8px; background: #f3f6fa; }
  .f-traffic-table tbody tr {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--f-line);
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 45, 70, .04);
  }
  .f-traffic-table tbody tr:last-child { margin-bottom: 0; }
  .f-traffic-table td {
    min-width: 0;
    padding: 10px !important;
    display: block;
    border: 0 !important;
    border-right: 1px solid var(--f-line-soft) !important;
    border-bottom: 1px solid var(--f-line-soft) !important;
    background: #fff !important;
  }
  .f-traffic-table td:nth-child(even) { border-right: 0 !important; }
  .f-traffic-table td[data-label="流量ID"],
  .f-traffic-table td[data-label="工作微信 / 渠道"],
  .f-traffic-table td[data-label="备注"],
  .f-traffic-table td[data-label="操作"],
  .f-traffic-table .f-empty-cell {
    grid-column: 1 / -1;
    border-right: 0 !important;
  }
  .f-traffic-table td::before {
    content: attr(data-label);
    margin-bottom: 5px;
    display: block;
    color: var(--f-muted);
    font-size: 10px;
    font-weight: 700;
  }
  .f-traffic-table td strong,
  .f-traffic-table td > span:not(.f-status):not(.f-intent) { overflow-wrap: anywhere; }
  .f-traffic-table td[data-label="操作"] { text-align: right; }
  .f-ledger-pagination { align-items: stretch; flex-direction: column; }
  .f-ledger-pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
  .f-ledger-pagination button { width: 100%; }
  .f-intent-picker { grid-template-columns: repeat(5, minmax(48px, 1fr)); overflow-x: auto; }
  .f-insight-list,
  .f-period-review-grid,
  .f-self-review-list dl { grid-template-columns: 1fr; }
  .f-month-report,
  .f-material-card footer { align-items: flex-start; flex-direction: column; }
  .f-month-report > div:last-child { width: 100%; flex-wrap: wrap; }
  .f-discussion-layout { padding: 12px; }
  .f-discussion-case dl { grid-template-columns: 1fr; }
  .f-input-action button { min-width: 68px; padding-inline: 8px; }
}

.f-ledger-link,
.f-inline-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--f-blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.f-ledger-link:hover,
.f-inline-link:hover {
  text-decoration: underline;
}

.f-correction-pending {
  color: #b86113 !important;
  font-weight: 800;
}

.f-correction-queue {
  border-left: 3px solid #f59e0b;
  margin-bottom: 18px;
}

.f-correction-queue .f-section-head > strong {
  color: #b86113;
  font-size: 13px;
}

.f-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 4px 0 18px;
}

.f-snapshot-grid > div {
  background: #f7f9fc;
  border: 1px solid #e4eaf3;
  border-radius: 6px;
  min-width: 0;
  padding: 12px 14px;
}

.f-snapshot-grid > .wide {
  grid-column: 1 / -1;
}

.f-snapshot-grid dt {
  color: var(--f-muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.f-snapshot-grid dd {
  color: var(--f-ink);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.f-snapshot-related,
.f-snapshot-history {
  border-top: 1px solid #e4eaf3;
  padding: 16px 0 4px;
}

.f-snapshot-related h3,
.f-snapshot-history h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.f-snapshot-related > button {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 6px;
  color: var(--f-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.f-snapshot-related > button span {
  display: grid;
  gap: 3px;
}

.f-snapshot-related > button small,
.f-snapshot-history span {
  color: var(--f-muted);
  font-size: 11px;
}

.f-snapshot-history > div {
  display: grid;
  gap: 3px;
  padding: 8px 0;
}

.f-attribution-guidance {
  align-items: center;
  background: #fff8ed;
  border: 1px solid #f6d49d;
  border-radius: 6px;
  color: #8b4b0d;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.f-attribution-guidance button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--f-blue);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

@media (max-width: 720px) {
  .f-snapshot-grid { grid-template-columns: 1fr; }
  .f-snapshot-grid > .wide { grid-column: auto; }
  .f-snapshot-related > button { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1100px) {
  .f-personnel-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .f-personnel-wechat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .f-personnel-wechat-row > span:first-child,
  .f-personnel-wechat-row > span:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .f-personnel-record {
    padding: 14px;
  }

  .f-personnel-head,
  .f-personnel-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .f-personnel-head > div,
  .f-personnel-actions > div {
    justify-content: flex-start;
  }

  .f-personnel-facts,
  .f-personnel-wechat-row,
  .f-service-status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-personnel-wechat-row > span:first-child,
  .f-personnel-wechat-row > span:last-child {
    grid-column: 1 / -1;
  }

  .f-service-staff-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .f-personnel-facts,
  .f-service-status-summary,
  .f-service-staff-metrics {
    grid-template-columns: 1fr;
  }

  .f-personnel-motto {
    grid-template-columns: 1fr;
  }
}
