/* 控制舱 · 运营总览 / 漏斗 / 经营 / 卡片计价 / 弹窗 */

.xc-ops-secband {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal2);
}
.xc-ops-secband:first-of-type { margin-top: 4px; }

.xc-ops-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.xc-ops-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.xc-ops-funnel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.xc-ops-funnel-bar {
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  min-width: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #14100a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.xc-ops-funnel-meta {
  font-size: 11px;
  color: var(--ink3);
  font-family: var(--mono);
  min-width: 88px;
  text-align: right;
}

.xc-ops-heat {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.xc-ops-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.xc-ops-modal[hidden] { display: none !important; }
.xc-ops-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.55);
}
.xc-ops-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 94vw);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 18px;
  background: var(--glass2, #16140f);
  border: 1px solid var(--stroke);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}
.xc-ops-modal-panel.wide { width: min(980px, 96vw); }
.xc-ops-modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--ink2);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.ledger-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.ledger-compact > div {
  flex: 1 1 120px;
  min-width: 110px;
}
.ledger-compact > div.grow { flex: 2 1 180px; }
.ledger-compact label {
  display: block;
  font-size: 10px;
  color: var(--ink3);
  margin-bottom: 4px;
}
.ledger-compact input,
.ledger-compact select {
  width: 100%;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
}
.ledger-compact .ledger-go { flex: 0 0 72px; min-width: 72px; }

#page-pricing.cards-mode .pw-left { display: none; }
#page-pricing.cards-mode .pw-board {
  grid-template-columns: 1fr;
}
#page-pricing.cards-mode .pw-board > .pw-right { display: none; }
#page-pricing.cards-mode #rule-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}
#page-pricing.cards-mode .rule-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
#page-pricing.cards-mode .rule-card .r-body {
  display: block;
  flex: 1;
}
#page-pricing.cards-mode .rule-card .r-actions {
  margin-top: 10px;
}
#page-pricing.cards-mode .rule-card .mini-btn {
  font-size: 11px;
  padding: 5px 12px;
}

.pricing-agent-bar {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 8px 20px 6px;
  margin-top: 0;
  flex-shrink: 0;
}
.pricing-agent-bar textarea {
  flex: 1;
  min-height: 52px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
}
.pricing-agent-bar .btn { flex-shrink: 0; align-self: center; height: 40px; }

.pw-filter-sel {
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--pw-line, var(--stroke));
  background: var(--pw-panel, var(--glass));
  color: inherit;
  font: inherit;
  font-size: 12px;
  padding: 0 8px;
  max-width: 160px;
}

.pricing-work-panel {
  padding: 0;
  width: min(520px, 94vw);
  overflow: hidden;
  background: #12161f;
  border: 1px solid rgba(79, 214, 196, 0.22);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}
.pricing-work-hd {
  padding: 20px 48px 6px 22px;
}
.pricing-work-hd b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink, #eef0f4);
}
.pricing-work-hd span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink3, #8a92a6);
}
.pricing-work-panel .pw-right {
  border: 0;
  width: 100%;
  max-height: min(78vh, 760px);
  display: flex !important;
  flex-direction: column;
  background: transparent;
}
#pricingWorkPanel .tabbar {
  margin: 8px 16px 0;
  padding: 4px;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
#pricingWorkPanel .rtab {
  border-radius: 10px;
  border-bottom: 0 !important;
  padding: 10px 0;
}
#pricingWorkPanel .rtab.on {
  background: rgba(79, 214, 196, 0.16);
  color: #4fd6c4;
  font-weight: 700;
}
#pricingWorkPanel .right-scroll {
  padding-bottom: 8px;
}
#page-pricing .r-quick {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
#page-pricing .r-cost-input {
  width: 72px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--pw-line, var(--stroke));
  background: var(--pw-panel2, var(--glass));
  color: inherit;
  font-weight: 800;
  font-size: 16px;
  text-align: right;
  padding: 0 8px;
  font-family: inherit;
}
#page-pricing .r-cost-save {
  font-size: 11px;
  padding: 5px 10px;
}

html:not(.theme-dark):not(.studio-theme-dark) .pricing-work-panel {
  background: #fffdf6;
  border-color: rgba(138, 109, 31, 0.22);
  box-shadow: 0 28px 80px rgba(60, 48, 20, 0.16);
}
html:not(.theme-dark):not(.studio-theme-dark) .pricing-work-hd b { color: #1a1610; }
html:not(.theme-dark):not(.studio-theme-dark) #pricingWorkPanel .tabbar {
  background: rgba(138, 109, 31, 0.08);
}
html:not(.theme-dark):not(.studio-theme-dark) #pricingWorkPanel .rtab.on {
  background: rgba(14, 143, 154, 0.12);
}

.ov-dash { display: flex; flex-direction: column; gap: 14px; }
.ov-kpis { margin: 0 !important; }
.ov-chart-wrap { padding: 8px 14px 10px; color: var(--ink3); }
.ov-axis-svg { display: block; color: var(--ink3); }
.ov-chart-card { margin: 0; }
.ov-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--ink3);
  padding: 0 16px 12px;
}
.ov-legend .dot::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.ov-legend .dot.teal::before { background: #4fd6c4; }
.ov-legend .dot.gold::before { background: #c9a227; }

@media (max-width: 1400px) {
  #page-pricing.cards-mode #rule-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  #page-pricing.cards-mode #rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #page-pricing.cards-mode #rule-list { grid-template-columns: 1fr; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  background: var(--glass);
}
.gallery-card .cover {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(150deg, var(--teal-soft), transparent);
}
.gallery-card .body { padding: 12px 14px 14px; }
.gallery-card b { font-size: 13.5px; }
.gallery-card .dim { font-size: 11px; color: var(--ink3); margin-top: 4px; line-height: 1.6; }

html:not(.theme-dark):not(.studio-theme-dark) .xc-ops-modal-backdrop {
  background: rgba(40, 34, 24, 0.35);
}
html:not(.theme-dark):not(.studio-theme-dark) .xc-ops-modal-panel {
  background: #fffdf6;
}

@media (max-width: 980px) {
  .xc-ops-grid2, .xc-ops-grid3 { grid-template-columns: 1fr; }
}
