/* ══════════════════════════════════════════════════════════
   投放作战台 · 成人学历智投运营
   ══════════════════════════════════════════════════════════ */

.ops-page {
  --ops-ink: #131a26;
  --ops-ink-2: #5f6878;
  --ops-ink-3: #98a1b2;
  --ops-line: #e7eaf0;
  --ops-soft: #f6f7fa;
  --ops-orange: #ff5a1f;
  --ops-orange-deep: #e94810;
  --ops-navy: #101827;
  --ops-green: #0d9f6e;
  --ops-red: #db3b3b;
  --ops-amber: #c77b08;
  --ops-blue: #2f6bff;
  max-width: 1480px;
  margin: 0 auto;
  color: var(--ops-ink);
}

.ops-loading {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ops-ink-2);
  font-size: 13px;
}

.ops-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 18px;
}
.ops-eyebrow,
.ops-card-kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.25px;
  color: var(--ops-orange);
  text-transform: uppercase;
}
.ops-header h1 {
  margin-top: 5px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 760;
}
.ops-header p {
  margin-top: 7px;
  font-size: 12px;
  color: var(--ops-ink-2);
}
.ops-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.ops-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--ops-line);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--ops-ink-2);
}
.ops-mode i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ops-green);
  box-shadow: 0 0 0 3px rgba(13, 159, 110, 0.1);
}
.ops-mode.demo i {
  background: var(--ops-orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
}
.ops-data-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f0d8a8;
  border-radius: 13px;
  background: #fffaf0;
  color: #7a5312;
}
.ops-data-alert.danger {
  border-color: #f2c8c2;
  background: #fff5f3;
  color: #9a2f24;
}
.ops-data-alert > .i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ops-data-alert > div {
  min-width: 0;
  flex: 1;
}
.ops-data-alert b {
  display: block;
  font-size: 12px;
}
.ops-data-alert span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.6;
  color: inherit;
  opacity: 0.78;
}
.ops-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ops-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ops-ink);
  transition: background 0.16s, transform 0.16s;
}
.ops-icon-btn:hover {
  background: var(--ops-soft);
}
.ops-icon-btn:active {
  transform: scale(0.94);
}
.ops-icon-btn .i {
  width: 18px;
  height: 18px;
}
.ops-icon-btn.busy .i {
  animation: spin 0.8s linear infinite;
}
.ops-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--ops-line);
  background: #fff;
  color: var(--ops-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, transform 0.12s;
}
.ops-btn:hover {
  background: #f9fafb;
  border-color: #dce1e9;
}
.ops-btn:active {
  transform: translateY(1px);
}
.ops-btn.primary {
  border-color: var(--ops-orange);
  background: var(--ops-orange);
  color: #fff;
}
.ops-btn.primary:hover {
  background: var(--ops-orange-deep);
  border-color: var(--ops-orange-deep);
}
.ops-btn.ghost {
  background: rgba(255, 255, 255, 0.72);
}
.ops-btn.sm {
  min-height: 31px;
  padding: 0 9px;
  font-size: 11px;
}
.ops-btn .i {
  width: 16px;
  height: 16px;
}
.ops-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ── Hero ─────────────────────────────────────────────── */

.ops-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 36px;
  padding: 28px 30px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 102, 43, 0.26), transparent 29%),
    radial-gradient(circle at 4% 100%, rgba(47, 107, 255, 0.15), transparent 30%),
    linear-gradient(133deg, #0e1524 0%, #141f33 58%, #211a1c 100%);
  color: #fff;
  box-shadow: 0 26px 60px -42px rgba(10, 20, 38, 0.85);
  isolation: isolate;
}
.ops-hero::after {
  content: '';
  position: absolute;
  right: 286px;
  top: -64px;
  width: 1px;
  height: 360px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.ops-hero-glow {
  position: absolute;
  right: 70px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.14);
  filter: blur(20px);
  z-index: -1;
}
.ops-hero-copy {
  position: relative;
  z-index: 1;
}
.ops-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.15px;
}
.ops-hero-kicker span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7b43;
  box-shadow: 0 0 0 3px rgba(255, 123, 67, 0.16);
}
.ops-hero h2 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.24;
  letter-spacing: -0.9px;
  font-weight: 730;
}
.ops-hero-copy > p {
  max-width: 800px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}
.ops-hero-target {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.ops-hero-target > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(6px);
}
.ops-hero-target span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.52);
}
.ops-hero-target b {
  display: block;
  margin-top: 4px;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.ops-hero-target b small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}
.ops-hero-target b.over,
.ops-hero-target b.warn {
  color: #ffb07f;
}
.ops-hero-target b.good {
  color: #72e1b6;
}
.ops-progress-block {
  margin-top: 16px;
}
.ops-progress-top,
.ops-pace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.56);
}
.ops-progress-top b {
  color: #fff;
  font-size: 11px;
}
.ops-progress {
  height: 7px;
  margin-top: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.ops-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a4d, #ff4d1f);
  box-shadow: 0 0 16px rgba(255, 90, 31, 0.5);
  transition: width 0.5s ease;
}
.ops-progress-block p {
  margin-top: 7px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.46);
}
.ops-pace {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ops-pace-top b {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 9.5px;
}
.ops-pace-top b.good {
  color: #7ee7bd;
  background: rgba(20, 172, 120, 0.13);
}
.ops-pace-top b.warn {
  color: #ffcb7c;
  background: rgba(220, 145, 20, 0.15);
}
.ops-pace-top b.bad {
  color: #ff9b9b;
  background: rgba(220, 60, 60, 0.15);
}
.ops-pace-track {
  position: relative;
  height: 7px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}
.ops-pace-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  opacity: 0.74;
}
.ops-pace-track em {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: #ff7b43;
  box-shadow: 0 0 0 3px rgba(255, 123, 67, 0.14);
}
.ops-pace-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 7px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.48);
  font-variant-numeric: tabular-nums;
}

/* ── Score ─────────────────────────────────────────────── */

.ops-score-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 22px;
}
.ops-score-ring {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ff6a31 calc(var(--score) * 1%), rgba(255, 255, 255, 0.1) 0);
  position: relative;
}
.ops-score-ring::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #111a2b;
}
.ops-score-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ops-score-ring b {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.ops-score-ring span {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.52);
}
.ops-score-title {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
}
.ops-score-list {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ops-score-list > div {
  display: grid;
  grid-template-columns: 48px 1fr 22px;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.5);
}
.ops-score-list i {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.ops-score-list em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff925f, #ff5a1f);
}
.ops-score-list b {
  text-align: right;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ops-score-note {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 9px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
}
.ops-score-note .i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── KPI ───────────────────────────────────────────────── */

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ops-kpi {
  padding: 13px 14px;
  border: 1px solid var(--ops-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 27, 40, 0.03);
}
.ops-kpi span {
  display: block;
  font-size: 9.5px;
  color: var(--ops-ink-3);
}
.ops-kpi b {
  display: block;
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.ops-kpi b.good {
  color: var(--ops-green);
}
.ops-kpi b.warn {
  color: var(--ops-amber);
}
.ops-kpi b.bad {
  color: var(--ops-red);
}
.ops-kpi em {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  font-style: normal;
  color: var(--ops-ink-3);
}
.ops-kpi em strong {
  font-weight: 600;
}
.ops-kpi em strong.good {
  color: var(--ops-green);
}
.ops-kpi em strong.warn {
  color: var(--ops-amber);
}
.ops-kpi em strong.bad {
  color: var(--ops-red);
}

/* ── Layout / cards ────────────────────────────────────── */

.ops-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.ops-card {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--ops-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 27, 40, 0.025), 0 16px 34px -32px rgba(20, 27, 40, 0.32);
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.ops-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.ops-card-head h3 {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.25px;
  font-weight: 700;
}
.ops-card-head p {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--ops-ink-3);
}
.ops-count,
.ops-card-badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--ops-soft);
  color: var(--ops-ink-2);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ops-card-badge.score {
  background: #fff1ea;
  color: var(--ops-orange-deep);
}
.ops-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0 9px;
  padding-top: 13px;
  border-top: 1px solid var(--ops-line);
  font-size: 10.5px;
  color: var(--ops-ink-3);
}
.ops-subhead span:first-child {
  color: var(--ops-ink);
  font-weight: 600;
}
.ops-subhead a {
  color: var(--ops-orange-deep);
  font-weight: 600;
}
.ops-muted {
  color: var(--ops-ink-3);
  font-size: 10.5px;
  line-height: 1.65;
}

/* ── Decisions ─────────────────────────────────────────── */

.ops-decision-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ops-decision {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 154px;
  gap: 12px;
  padding: 13px 13px 13px 0;
  border: 1px solid var(--ops-line);
  border-radius: 13px;
  background: #fcfcfd;
  transition: border-color 0.16s, background 0.16s;
}
.ops-decision:hover {
  border-color: #dfe3ea;
  background: #fff;
}
.ops-decision-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-right: 1px solid var(--ops-line);
}
.ops-decision-rail span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--ops-ink-3);
}
.ops-decision-rail i {
  width: 5px;
  flex: 1;
  min-height: 24px;
  border-radius: 99px;
  background: #d7dce5;
}
.ops-decision.danger .ops-decision-rail span {
  color: var(--ops-red);
}
.ops-decision.danger .ops-decision-rail i {
  background: linear-gradient(180deg, #ff7b7b, #db3b3b);
}
.ops-decision.warn .ops-decision-rail span {
  color: var(--ops-amber);
}
.ops-decision.warn .ops-decision-rail i {
  background: linear-gradient(180deg, #ffd17b, #d88a13);
}
.ops-decision.normal .ops-decision-rail span {
  color: var(--ops-blue);
}
.ops-decision.normal .ops-decision-rail i {
  background: linear-gradient(180deg, #86a9ff, #2f6bff);
}
.ops-decision-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ops-kind {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f3f7;
  color: var(--ops-ink-2);
  font-size: 9px;
  font-weight: 650;
}
.ops-decision-title h3 {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.1px;
}
.ops-decision-main > p {
  margin-top: 5px;
  font-size: 10.8px;
  line-height: 1.65;
  color: var(--ops-ink-2);
}
.ops-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.ops-evidence span {
  padding: 3px 6px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--ops-line);
  font-size: 9px;
  color: var(--ops-ink-3);
}
.ops-impact {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9.5px;
  color: var(--ops-green);
  font-weight: 600;
}
.ops-impact .i {
  width: 13px;
  height: 13px;
}
.ops-decision-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
}
.ops-decision-side .ops-btn {
  width: 100%;
  min-height: 33px;
  font-size: 10.5px;
}
.ops-confidence {
  text-align: center;
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ops-ink-2);
}
.ops-empty .i {
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  color: var(--ops-green);
}
.ops-empty b {
  display: block;
  font-size: 13px;
}
.ops-empty p {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--ops-ink-3);
}

/* ── Funnel ────────────────────────────────────────────── */

.ops-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ops-funnel-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 9px;
}
.ops-funnel-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.ops-funnel-label span {
  color: #b6bdc9;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.ops-funnel-label b {
  font-weight: 600;
  color: var(--ops-ink-2);
}
.ops-funnel-bar {
  height: 13px;
  border-radius: 4px;
  background: #f3f5f8;
  overflow: hidden;
}
.ops-funnel-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9b68, #ff5a1f);
}
.ops-funnel-bar i.muted {
  background: repeating-linear-gradient(135deg, #e7eaf0 0 6px, #f4f6f9 6px 12px);
}
.ops-funnel-row:nth-child(3) .ops-funnel-bar i {
  background: linear-gradient(90deg, #ffb27f, #ff7a3d);
}
.ops-funnel-row:nth-child(4) .ops-funnel-bar i,
.ops-funnel-row:nth-child(5) .ops-funnel-bar i {
  background: linear-gradient(90deg, #a9c0ff, #2f6bff);
}
.ops-funnel-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ops-funnel-value b {
  display: block;
  font-size: 12px;
  line-height: 1.15;
}
.ops-funnel-value span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-funnel-rates {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--ops-soft);
  font-size: 9px;
  color: var(--ops-ink-3);
}
.ops-funnel-rates b {
  color: var(--ops-ink);
  font-weight: 650;
}
.ops-funnel-cost {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.ops-funnel-cost > div {
  padding: 10px;
  border: 1px solid var(--ops-line);
  border-radius: 9px;
}
.ops-funnel-cost span {
  display: block;
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-funnel-cost b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.ops-funnel-cost b.good {
  color: var(--ops-green);
}
.ops-funnel-cost b.warn {
  color: var(--ops-amber);
}
.ops-funnel-cost b.bad {
  color: var(--ops-red);
}
.ops-funnel-cost em {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-style: normal;
  color: var(--ops-ink-3);
}

/* ── Table ─────────────────────────────────────────────── */

.ops-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}
.ops-table th {
  padding: 0 8px 8px;
  text-align: left;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ops-ink-3);
  border-bottom: 1px solid var(--ops-line);
  white-space: nowrap;
}
.ops-table th.num,
.ops-table td.num {
  text-align: right;
}
.ops-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #f0f2f6;
  vertical-align: middle;
  white-space: nowrap;
}
.ops-table tr:last-child td {
  border-bottom: 0;
}
.ops-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.ops-table tbody tr:hover {
  background: #fafbfd;
}
.ops-table td.good {
  color: var(--ops-green);
  font-weight: 600;
}
.ops-table td.warn {
  color: var(--ops-amber);
  font-weight: 600;
}
.ops-plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 280px;
}
.ops-channel-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9aa3b4;
}
.ops-channel-dot.搜索 { background: #2f6bff; }
.ops-channel-dot.信息流 { background: #ff8a3d; }
.ops-channel-dot.短视频 { background: #e43f70; }
.ops-channel-dot.直播 { background: #8b5cf6; }
.ops-plan-name > div {
  min-width: 0;
}
.ops-plan-name b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.8px;
  font-weight: 600;
}
.ops-plan-name span {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-stage {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}
.ops-stage.blue { background: #edf3ff; color: #2f6bff; }
.ops-stage.red { background: #fdeeee; color: #cf3737; }
.ops-stage.amber { background: #fff5e4; color: #b97408; }
.ops-stage.green { background: #e9f8f1; color: #07865c; }
.ops-stage.slate { background: #f1f3f7; color: #647084; }
.ops-stage.muted { background: #f4f5f7; color: #9ba3b1; }
.ops-row-action {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ops-orange-deep);
  font-size: 9.5px;
  font-weight: 600;
}
.ops-row-action:hover {
  background: #fff2ec;
}
.ops-row-action .i {
  width: 13px;
  height: 13px;
}

/* ── Creative ──────────────────────────────────────────── */

.ops-angle-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ops-angle {
  padding: 10px;
  border: 1px solid var(--ops-line);
  border-radius: 10px;
  background: #fcfcfd;
}
.ops-angle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ops-angle-head b {
  font-size: 10.8px;
}
.ops-verdict {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 650;
}
.ops-verdict.good { background: #e9f8f1; color: #07865c; }
.ops-verdict.warn { background: #fff5e4; color: #b97408; }
.ops-verdict.bad { background: #fdeeee; color: #cf3737; }
.ops-angle > p {
  margin-top: 4px;
  font-size: 9.3px;
  line-height: 1.55;
  color: var(--ops-ink-2);
}
.ops-angle-score {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: #eef1f5;
  overflow: hidden;
}
.ops-angle-score i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9a68, #ff5a1f);
}
.ops-angle-meta {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 6px;
  font-size: 8.2px;
  color: var(--ops-ink-3);
}
.ops-angle-meta b {
  color: var(--ops-ink-2);
  font-weight: 600;
}
.ops-refresh-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f2f4f7;
  font-size: 9.2px;
}
.ops-refresh-item:last-child {
  border-bottom: 0;
}
.ops-refresh-item span {
  color: var(--ops-ink-2);
  font-weight: 600;
}
.ops-refresh-item p {
  color: var(--ops-ink-3);
  line-height: 1.5;
}

/* ── Chart / rhythm / experiments ──────────────────────── */

.ops-chart {
  height: 238px;
}
.ops-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.ops-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--ops-line);
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-rhythm {
  display: flex;
  flex-direction: column;
}
.ops-rhythm-item {
  display: grid;
  grid-template-columns: 42px 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: flex-start;
  min-height: 47px;
}
.ops-rhythm-time {
  padding-top: 2px;
  font-size: 9px;
  color: var(--ops-ink-3);
  font-variant-numeric: tabular-nums;
}
.ops-rhythm-item > i {
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #d7dce5;
  box-shadow: 0 0 0 3px #fff;
  z-index: 1;
}
.ops-rhythm-item:not(:last-child) > i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 10px;
  width: 1px;
  height: 38px;
  background: #eceff4;
}
.ops-rhythm-item.done > i {
  background: var(--ops-green);
}
.ops-rhythm-item.now > i {
  background: var(--ops-orange);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 90, 31, 0.12);
}
.ops-rhythm-item b {
  display: block;
  font-size: 10.5px;
}
.ops-rhythm-item p {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--ops-ink-3);
}
.ops-rhythm-state {
  padding-top: 2px;
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-rhythm-item.done .ops-rhythm-state { color: var(--ops-green); }
.ops-rhythm-item.now .ops-rhythm-state { color: var(--ops-orange-deep); font-weight: 600; }
.ops-experiments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ops-experiment {
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 11px;
  background: #fcfcfd;
}
.ops-experiment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-experiment-top b {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef3ff;
  color: #2f6bff;
  font-size: 8px;
}
.ops-experiment h4 {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
}
.ops-experiment > p {
  margin-top: 4px;
  min-height: 31px;
  font-size: 9px;
  line-height: 1.55;
  color: var(--ops-ink-2);
}
.ops-exp-progress {
  height: 4px;
  margin-top: 9px;
  border-radius: 99px;
  background: #eef1f5;
  overflow: hidden;
}
.ops-exp-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8caefc, #2f6bff);
}
.ops-exp-result {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  font-size: 8.7px;
  line-height: 1.5;
  color: var(--ops-ink-2);
}
.ops-exp-result .i {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ops-blue);
}
.ops-exp-next {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--ops-line);
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--ops-ink-3);
}
.ops-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ops-notes > div {
  display: flex;
  gap: 7px;
  padding: 9px;
  border-radius: 9px;
  background: #fafbfd;
  font-size: 9.2px;
  line-height: 1.6;
  color: var(--ops-ink-2);
}
.ops-notes .i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ops-orange);
}
.ops-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f2f4f7;
}
.ops-channel-row:last-child {
  border-bottom: 0;
}
.ops-channel-row b {
  display: block;
  font-size: 10px;
}
.ops-channel-row span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: var(--ops-ink-3);
}
.ops-channel-row strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.ops-channel-row strong.good { color: var(--ops-green); }
.ops-channel-row strong.warn { color: var(--ops-amber); }
.ops-channel-row strong.bad { color: var(--ops-red); }
.ops-channel-row strong.blue { color: var(--ops-blue); }
.ops-action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ops-action-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fafbfd;
  font-size: 9px;
}
.ops-action-list span {
  color: var(--ops-ink-3);
  font-variant-numeric: tabular-nums;
}
.ops-action-list b {
  font-size: 9.5px;
}
.ops-action-list em {
  grid-column: 2;
  font-style: normal;
  color: var(--ops-ink-3);
}

.ops-copy-config {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--ops-line);
}
.ops-copy-config .ops-subhead button {
  height: 25px;
  padding: 0 8px;
  font-size: 8.5px;
}
.ops-copy-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ops-copy-config-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f8fafc;
}
.ops-copy-config-grid span {
  font-size: 8px;
  color: var(--ops-ink-3);
}
.ops-copy-config-grid b {
  font-size: 11px;
  color: var(--ops-ink);
}
.ops-copy-config-grid b.good { color: var(--ops-green); }
.ops-copy-config-grid b.warn { color: var(--ops-amber); }
.ops-copy-config-grid em {
  font-style: normal;
  font-size: 7.8px;
  line-height: 1.35;
  color: var(--ops-ink-3);
}

/* ── Settings sheet ────────────────────────────────────── */

.ops-settings-sheet {
  --ops-ink: #131a26;
  --ops-ink-2: #5f6878;
  --ops-ink-3: #98a1b2;
  --ops-line: #e7eaf0;
  --ops-soft: #f6f7fa;
  --ops-orange: #ff5a1f;
  --ops-orange-deep: #e94810;
  --ops-navy: #101827;
  --ops-green: #0d9f6e;
  --ops-red: #db3b3b;
  --ops-amber: #c77b08;
  --ops-blue: #2f6bff;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-frame.desktop .sheet-panel.ops-settings-sheet {
  max-width: 820px;
}
.ops-settings-sheet .sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.ops-settings-sheet .sheet-foot {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--ops-line);
  background: #fff;
}
.ops-settings-sheet .sheet-foot .ops-btn {
  flex: 0 1 180px;
}
.ops-settings-intro {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff5ef;
  color: #7b4a35;
  font-size: 10.5px;
  line-height: 1.65;
}
.ops-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.ops-settings-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ops-line);
}
.ops-settings-section:last-of-type {
  border-bottom: 0;
}
.ops-settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.ops-settings-section-head h4 {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--ops-ink);
}
.ops-settings-section-head p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--ops-ink-3);
}
.ops-slogan-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}
.ops-settings-hint {
  margin-left: auto;
  font-size: 8.8px;
  color: var(--ops-ink-3);
}
.ops-slogan-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 310px;
  overflow: auto;
  padding-right: 3px;
}
.ops-slogan-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--ops-line);
  border-radius: 9px;
  background: #fbfcfe;
}
.ops-slogan-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--ops-ink-3);
  cursor: pointer;
}
.ops-slogan-check input {
  accent-color: var(--ops-orange);
}
.ops-slogan-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 6px;
}
.ops-slogan-fields .input {
  height: 32px;
  font-size: 10px;
}
.ops-slogan-remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ops-ink-3);
  cursor: pointer;
}
.ops-slogan-remove:hover {
  background: #fff0ec;
  color: var(--ops-red);
}
.ops-slogan-remove .i {
  width: 13px;
  height: 13px;
}
.ops-field.wide {
  grid-column: 1 / -1;
}
.ops-field .textarea {
  min-height: 66px;
  height: auto;
  padding: 8px 10px;
  line-height: 1.55;
  resize: vertical;
}
.ops-settings-form .error-box {
  margin-top: 6px;
}
.ops-copy-override {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid var(--ops-line);
  border-radius: 9px;
  background: #fbfcfe;
}
.ops-copy-override > summary {
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ops-ink-2);
}
.ops-copy-override[open] > summary {
  margin-bottom: 10px;
}
.ops-copy-override .form-grid {
  gap: 10px;
}
.ops-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ops-field > span {
  font-size: 10.5px;
  font-weight: 600;
}
.ops-field .input {
  height: 38px;
}
.ops-field small {
  font-size: 8.8px;
  line-height: 1.45;
  color: var(--ops-ink-3);
}
.ops-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--ops-line);
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1240px) {
  .ops-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ops-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-card.span-4,
  .ops-card.span-5,
  .ops-card.span-7,
  .ops-card.span-8,
  .ops-card.span-12 {
    grid-column: span 2;
  }
  .ops-decisions.span-7 {
    grid-column: span 2;
  }
  .ops-funnel-card.span-5 {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .ops-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .ops-header-actions {
    width: 100%;
  }
  .ops-header-actions .ops-btn {
    flex: 1;
  }
  .ops-hero {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 22px;
  }
  .ops-hero::after {
    display: none;
  }
  .ops-score-panel {
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .ops-score-ring {
    width: 104px;
    height: 104px;
  }
  .ops-score-list {
    max-width: 360px;
  }
  .ops-hero-target {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-layout {
    grid-template-columns: 1fr;
  }
  .ops-card.span-4,
  .ops-card.span-5,
  .ops-card.span-7,
  .ops-card.span-8,
  .ops-card.span-12,
  .ops-decisions.span-7,
  .ops-funnel-card.span-5 {
    grid-column: span 1;
  }
  .ops-experiments {
    grid-template-columns: 1fr;
  }
  .ops-action-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ops-page {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ops-header h1 {
    font-size: 26px;
  }
  .ops-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 36px;
    gap: 7px;
  }
  .ops-mode {
    height: 32px;
    width: 100%;
    justify-content: center;
    padding: 0 8px;
  }
  .ops-header-actions .ops-btn {
    grid-column: 1 / 3;
    width: 100%;
  }
  .ops-header-actions .ops-icon-btn {
    grid-column: 3;
  }
  .ops-data-alert {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .ops-data-alert > div {
    flex: 1 1 calc(100% - 32px);
  }
  .ops-data-alert .ops-btn {
    width: 100%;
  }
  .ops-hero {
    border-radius: 18px;
    padding: 19px 16px;
  }
  .ops-hero h2 {
    font-size: 22px;
    line-height: 1.28;
  }
  .ops-hero-copy > p {
    font-size: 11.5px;
  }
  .ops-hero-target {
    gap: 7px;
  }
  .ops-hero-target > div {
    padding: 9px 10px;
  }
  .ops-hero-target b {
    font-size: 18px;
  }
  .ops-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-card {
    padding: 16px 14px;
    border-radius: 15px;
  }
  .ops-card-head {
    gap: 8px;
  }
  .ops-decision {
    grid-template-columns: 28px minmax(0, 1fr);
    padding-right: 11px;
  }
  .ops-decision-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ops-decision-side .ops-btn {
    width: auto;
  }
  .ops-funnel-row {
    grid-template-columns: 68px minmax(0, 1fr) 62px;
  }
  .ops-funnel-rates {
    flex-wrap: wrap;
  }
  .ops-settings-grid {
    grid-template-columns: 1fr;
  }
  .ops-table {
    min-width: 650px;
  }
  .ops-chart {
    height: 180px;
  }
  .ops-pace-meta {
    flex-direction: column;
    gap: 3px;
  }
  .ops-channel-row span { overflow-wrap: anywhere; }
}

@media (max-width: 700px) {
  .ops-settings-sheet .sheet-foot .ops-btn {
    flex: 1 1 0;
  }
  .ops-settings-section-head {
    flex-direction: column;
  }
  .ops-slogan-toolbar {
    align-items: flex-start;
  }
  .ops-settings-hint {
    width: 100%;
    margin-left: 0;
  }
  .ops-slogan-row {
    grid-template-columns: minmax(0, 1fr) 26px;
  }
  .ops-slogan-check {
    grid-column: 1 / -1;
  }
  .ops-slogan-fields {
    grid-template-columns: 1fr;
  }
}
