/* ══════════════════════════════════════════════════════════
   运营中心 · 今日执行台
   以“今天先做什么”为主线，AI 与长报告退居辅助位
   ══════════════════════════════════════════════════════════ */

.opsdesk-page {
  --od-navy: #101827;
  --od-navy-2: #18253a;
  --od-soft: #f6f7fa;
  --od-line: #e7eaf0;
  --od-muted: #7c8595;
  --od-good: #0d9f6e;
  --od-warn: #c77b08;
  --od-bad: #d7443e;
  --od-blue: #2f6bff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.opsdesk-shell .topbar {
  align-items: flex-start;
}
.opsdesk-shell .topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.opsdesk-shell .topbar-actions > * {
  flex: 0 0 auto;
}
.opsdesk-shell .desk-btn {
  white-space: nowrap;
}
.opsdesk-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 250px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opsdesk-account-chip i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 112, 0.13);
}
.opsdesk-shell .assistant-btn {
  color: var(--brand-deep);
  border-color: rgba(255, 77, 31, 0.22);
  background: var(--brand-soft);
}
.opsdesk-shell .intel-tabs {
  margin: 0;
  padding: 3px;
  gap: 3px;
  border-radius: 13px;
  background: #eceef2;
}
.opsdesk-shell .intel-tab {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
.opsdesk-shell .intel-tab:hover {
  background: rgba(255, 255, 255, 0.55);
  border: 0;
}
.opsdesk-shell .intel-tab.active {
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 24, 35, 0.08);
}

.intel-legacy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(47, 107, 255, 0.16);
  border-radius: 11px;
  background: var(--blue-soft);
  color: #3f5c9e;
  font-size: 11.5px;
  line-height: 1.5;
}
.intel-legacy-bar .link-btn {
  flex: 0 0 auto;
}

/* ── 首屏：今日战情 ─────────────────────────────────────── */

.opsdesk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(560px 250px at 94% 0%, rgba(255, 111, 64, 0.28), transparent 68%),
    radial-gradient(420px 260px at 20% 120%, rgba(47, 107, 255, 0.2), transparent 72%),
    linear-gradient(135deg, #101827 0%, #17253a 62%, #1b2c44 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px -34px rgba(16, 24, 39, 0.8);
  overflow: hidden;
}
.opsdesk-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.opsdesk-hero-main,
.opsdesk-goal {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.opsdesk-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.58);
}
.opsdesk-live {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #42e6a4;
  box-shadow: 0 0 0 4px rgba(66, 230, 164, 0.12);
  animation: od-pulse 2.4s ease-in-out infinite;
}
@keyframes od-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.48;
  }
}
.opsdesk-hero h2 {
  margin-top: 12px;
  max-width: 740px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.opsdesk-hero-main > p {
  margin-top: 8px;
  max-width: 800px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}
.opsdesk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.opsdesk-hero .tag {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.74);
}
.opsdesk-hero .tag.red {
  background: rgba(255, 109, 101, 0.16);
  color: #ffb3ad;
}
.opsdesk-hero .tag.amber {
  background: rgba(245, 176, 65, 0.15);
  color: #ffd28f;
}
.opsdesk-hero .tag.green {
  background: rgba(66, 230, 164, 0.13);
  color: #92f1cb;
}
.opsdesk-hero .tag.brand {
  background: rgba(255, 122, 78, 0.16);
  color: #ffb59b;
}
.opsdesk-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.opsdesk-kpi {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}
.opsdesk-kpi span {
  display: block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.48);
}
.opsdesk-kpi b {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opsdesk-kpi em {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opsdesk-kpi b.good {
  color: #74e5b8;
}
.opsdesk-kpi b.warn {
  color: #ffd287;
}
.opsdesk-kpi b.bad {
  color: #ffaaa3;
}

.opsdesk-goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
}
.opsdesk-goal-ring {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ff7a4e calc(var(--pct, 0) * 1%), rgba(255, 255, 255, 0.11) 0);
  position: relative;
}
.opsdesk-goal-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #19263a;
}
.opsdesk-goal-ring.muted {
  background: conic-gradient(#697387 0, rgba(255, 255, 255, 0.1) 0);
}
.opsdesk-goal-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}
.opsdesk-goal-ring b {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.opsdesk-goal-ring span {
  display: block;
  margin-top: 5px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.44);
}
.opsdesk-goal-value {
  margin-top: 11px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.opsdesk-goal-value small {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.46);
}
.opsdesk-goal-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: 7px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.45);
}
.opsdesk-goal-meta b {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.opsdesk-goal-note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.4);
}

/* ── 主体布局 ───────────────────────────────────────────── */

.opsdesk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.opsdesk-main,
.opsdesk-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.opsdesk-main > .opsdesk-card,
.opsdesk-side > .opsdesk-card {
  margin-top: 0;
}
.opsdesk-card {
  min-width: 0;
  overflow: hidden;
}
.opsdesk-card .card-head {
  gap: 12px;
  align-items: flex-start;
}
.opsdesk-card .card-head > div {
  min-width: 0;
}
.opsdesk-card .card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.25px;
}
.opsdesk-card .card-sub {
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.opsdesk-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.opsdesk-split > .opsdesk-card {
  height: 100%;
}
.opsdesk-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.opsdesk-card-foot .desk-btn {
  height: 31px;
  padding: 0 10px;
  font-size: 10.5px;
}
.od-footnote {
  margin-top: 9px;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.od-card-foot > .od-footnote,
.opsdesk-card-foot > .od-footnote {
  margin-top: 0;
}

/* ── 优先处理 ───────────────────────────────────────────── */

.od-priorities {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.od-priority {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 0;
  border: 1px solid var(--od-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.od-priority-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  background: #f7f8fa;
  border-right: 1px solid var(--od-line);
  text-align: center;
}
.od-priority-rail b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.od-priority-rail span {
  font-size: 8.5px;
  color: var(--ink-3);
}
.od-priority.p0 .od-priority-rail {
  background: #fff1f0;
  border-color: #f6d6d3;
}
.od-priority.p0 .od-priority-rail b {
  color: var(--od-bad);
}
.od-priority.p1 .od-priority-rail {
  background: #fff8e9;
  border-color: #f0e2c5;
}
.od-priority.p1 .od-priority-rail b {
  color: var(--od-warn);
}
.od-priority.p2 .od-priority-rail b {
  color: var(--od-blue);
}
.od-priority-body {
  min-width: 0;
  padding: 13px 14px;
}
.od-priority-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.od-priority-title h3 {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 680;
  letter-spacing: -0.15px;
}
.od-source {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f3f4f7;
  color: var(--ink-3);
  font-size: 8.5px;
}
.od-priority-body > p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}
.od-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.od-evidence span {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f6f7f9;
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.45;
}
.od-impact {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 8px;
  color: var(--brand-deep);
  font-size: 9.5px;
  line-height: 1.5;
}
.od-impact .i {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}
.od-priority-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 12px;
}
.od-priority-actions .desk-btn {
  height: 32px;
  white-space: nowrap;
}
.od-confidence {
  font-size: 8.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ── 计划处置队列 ───────────────────────────────────────── */

.od-queue {
  margin-top: 10px;
}
.od-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px auto;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-top: 1px solid var(--line);
}
.od-row:first-child {
  border-top: 0;
}
.od-row-main {
  min-width: 0;
}
.od-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.od-row-title b {
  font-size: 12.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.od-row-meta {
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.od-row-reason {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink-2);
}
.od-row-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.od-row-metrics > div {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--od-soft);
}
.od-row-metrics span {
  display: block;
  font-size: 8.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.od-row-metrics b {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.od-row-metrics b.good {
  color: var(--green);
}
.od-row-metrics b.warn {
  color: var(--amber);
}
.od-row-metrics b.bad {
  color: var(--red);
}
.od-row-metrics b.muted {
  color: var(--ink-3);
}
.od-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.od-row-actions .desk-btn {
  height: 30px;
  padding: 0 9px;
  font-size: 10px;
  white-space: nowrap;
}
.od-row-actions .link-btn {
  font-size: 9.5px;
}

.pill.danger {
  background: var(--red-soft);
  color: var(--red);
}
.pill.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill.ok {
  background: var(--green-soft);
  color: var(--green);
}
.pill.info {
  background: var(--blue-soft);
  color: var(--blue);
}
.pill.muted {
  background: #f1f2f5;
  color: var(--ink-3);
}

/* ── 素材实验 / 回传质量 ────────────────────────────────── */

.od-angle-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.od-angle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}
.od-angle b {
  font-size: 9.5px;
  font-weight: 600;
}
.od-angle em {
  font-size: 8.5px;
  font-style: normal;
  color: var(--ink-3);
}
.od-angle.good {
  background: var(--green-soft);
  border-color: rgba(0, 168, 112, 0.15);
}
.od-angle.good em {
  color: var(--green);
}
.od-angle.bad {
  background: var(--red-soft);
  border-color: rgba(226, 61, 61, 0.14);
}
.od-angle.bad em {
  color: var(--red);
}
.od-experiments {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}
.od-experiment {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
}
.od-experiment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.od-experiment-head b {
  font-size: 11px;
  font-weight: 650;
}
.od-experiment-head .tag {
  flex: 0 0 auto;
  height: 17px;
  font-size: 8.5px;
}
.od-experiment > p {
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.od-experiment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 5px;
  font-size: 8.5px;
  color: var(--ink-3);
}
.od-mini-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 13px;
}
.od-mini-funnel > div {
  padding: 8px;
  border-radius: 9px;
  background: var(--od-soft);
  min-width: 0;
}
.od-mini-funnel span {
  display: block;
  font-size: 8.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.od-mini-funnel b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.od-mini-funnel > div:nth-child(2) {
  background: #fff7f2;
}
.od-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 9px;
  font-size: 9px;
  color: var(--ink-3);
}
.od-rates b {
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.od-gaps {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.od-gaps li {
  position: relative;
  padding-left: 11px;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.od-gaps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}
.od-ok {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9.5px;
  line-height: 1.5;
}
.od-ok .i {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

/* ── AI 辅助 ────────────────────────────────────────────── */

.od-ai {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed #dfe3eb;
  border-radius: 14px;
  background: #fbfcfd;
}
.od-ai-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0f2f7;
  color: #6d7788;
}
.od-ai-icon .i {
  width: 17px;
  height: 17px;
}
.od-ai-copy {
  flex: 1;
  min-width: 0;
}
.od-ai-copy b {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}
.od-ai-copy span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.od-ai-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.od-ai-actions .desk-btn {
  height: 29px;
  padding: 0 9px;
  font-size: 9.5px;
}

/* ── 右侧：节奏 / 账户 / 巡检 / 异常 ────────────────────── */

.opsdesk-side .opsdesk-card {
  padding: 16px;
}
.od-routines {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.od-routine {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.od-routine:first-child {
  border-top: 0;
}
.od-routine-time {
  font-size: 9.5px;
  font-weight: 650;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.od-routine-main {
  min-width: 0;
}
.od-routine-main b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
}
.od-routine-main span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  line-height: 1.4;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.od-routine-main em {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-style: normal;
  color: var(--ink-3);
}
.od-routine > .i {
  width: 13px;
  height: 13px;
  color: #c4cad4;
}
.od-routine.now {
  margin: 0 -8px;
  padding: 9px 8px;
  border-top-color: transparent;
  border-radius: 8px;
  background: var(--brand-soft);
}
.od-routine.now .od-routine-time,
.od-routine.now .od-routine-main b {
  color: var(--brand-deep);
}
.od-routine.now > .i {
  color: var(--brand);
}
.od-routine.past {
  opacity: 0.58;
}
.od-stat-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.od-stat {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.od-stat:first-child {
  border-top: 0;
}
.od-stat > span {
  display: block;
  font-size: 9px;
  color: var(--ink-3);
}
.od-stat > b {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.od-stat > b.good {
  color: var(--green);
}
.od-stat > b.warn {
  color: var(--amber);
}
.od-stat > b.bad {
  color: var(--red);
}
.od-stat > em {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.45;
  color: var(--ink-3);
}
.od-boundary {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #4260a3;
  font-size: 9px;
  line-height: 1.5;
}
.od-boundary .i {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}
.od-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.od-quick-links .desk-btn {
  height: 28px;
  padding: 0 8px;
  font-size: 9.5px;
}
.od-rule-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--ink-3);
}
.od-rule-row:first-of-type {
  margin-top: 8px;
}
.od-rule-row b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.od-rule-row em.bad {
  color: var(--red);
  font-style: normal;
}
.od-events {
  display: flex;
  flex-direction: column;
  margin-top: 7px;
}
.od-event {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 7px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.od-event:first-child {
  border-top: 0;
}
.od-event > span {
  font-size: 8px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.od-event b {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
}
.od-event em {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  line-height: 1.4;
  font-style: normal;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.od-event.warn b {
  color: var(--amber);
}
.od-event.error b,
.od-event.critical b {
  color: var(--red);
}
.od-empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--od-soft);
  color: var(--ink-3);
}
.od-empty > .i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.od-empty b {
  display: block;
  font-size: 11.5px;
  color: var(--ink);
}
.od-empty span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.5;
}
.opsdesk-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  color: var(--ink-3);
  font-size: 12px;
}

/* ── 素材实验台 ─────────────────────────────────────────── */

.creative-experiment-board {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(255, 106, 61, 0.2), transparent 70%),
    linear-gradient(135deg, #111a29, #1a2a41);
  box-shadow: 0 20px 40px -32px rgba(16, 24, 39, 0.8);
}
.creative-experiment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.creative-experiment-head h3 {
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 680;
  letter-spacing: -0.3px;
}
.creative-experiment-head p {
  margin-top: 5px;
  max-width: 720px;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
}
.creative-experiment-stats {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
}
.creative-experiment-stats span {
  display: block;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.creative-experiment-stats b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.creative-experiment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}
.creative-experiment {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}
.creative-experiment-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.creative-experiment-title b {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 620;
}
.creative-experiment-title .tag {
  flex: 0 0 auto;
  height: 17px;
  font-size: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
}
.creative-experiment > p {
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}
.creative-experiment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-top: 7px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.4);
}
.creative-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.creative-section-head b {
  display: block;
  font-size: 15px;
  font-weight: 680;
}
.creative-section-head span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink-3);
}
.creative-card-actions {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

/* ── 回传：五段漏斗 ─────────────────────────────────────── */

.funnel-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.funnel-grid.five .funnel-card {
  min-width: 0;
}
.funnel-grid.five .funnel-card b {
  font-size: 22px;
}
.funnel-grid.five .funnel-sub {
  overflow-wrap: anywhere;
}

/* ── 响应式 ─────────────────────────────────────────────── */

@media (min-width: 1024px) {
  .opsdesk-shell .topbar {
    margin-bottom: 4px;
  }
  .opsdesk-page {
    gap: 16px;
  }
}

@media (max-width: 1279px) {
  .opsdesk-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .opsdesk-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opsdesk-side > .opsdesk-card {
    height: 100%;
  }
}

@media (max-width: 1023px) {
  .opsdesk-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px 20px;
  }
  .opsdesk-goal {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    align-items: center;
    justify-items: start;
    padding: 14px;
  }
  .opsdesk-goal-ring {
    grid-row: 1 / 4;
    width: 108px;
    height: 108px;
  }
  .opsdesk-goal-ring b {
    font-size: 22px;
  }
  .opsdesk-goal-value {
    margin-top: 0;
  }
  .opsdesk-goal-meta {
    max-width: 340px;
    margin-top: 4px;
  }
  .opsdesk-goal-note {
    grid-column: 2;
    width: 100%;
    margin-top: 6px;
    padding-top: 6px;
  }
  .od-row {
    grid-template-columns: minmax(0, 1fr) 250px auto;
  }
  .od-ai {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .od-ai-copy {
    flex-basis: calc(100% - 48px);
  }
  .od-ai-actions {
    width: 100%;
    padding-left: 46px;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .od-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .od-row-metrics {
    border-top: 1px dashed var(--line-2);
    padding-top: 8px;
  }
  .od-row-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .funnel-grid.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creative-experiment-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .creative-experiment-head {
    flex-direction: column;
    gap: 12px;
  }
  .creative-experiment-stats {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .opsdesk-shell .topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .opsdesk-shell .topbar-main {
    flex-basis: 100%;
  }
  .opsdesk-shell .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .opsdesk-shell .topbar-actions::-webkit-scrollbar {
    display: none;
  }
  .opsdesk-account-chip {
    flex: 0 0 auto;
    max-width: 180px;
  }
  .opsdesk-shell .intel-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .opsdesk-shell .intel-tab {
    width: 100%;
    justify-content: center;
  }
  .intel-legacy-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .opsdesk-hero {
    padding: 20px 17px;
    border-radius: 20px;
  }
  .opsdesk-hero h2 {
    font-size: 20px;
  }
  .opsdesk-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opsdesk-goal {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 14px;
  }
  .opsdesk-goal-ring {
    width: 92px;
    height: 92px;
  }
  .opsdesk-goal-ring b {
    font-size: 18px;
  }
  .opsdesk-goal-ring span {
    font-size: 7.5px;
  }
  .opsdesk-split,
  .opsdesk-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .od-priority {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .od-priority-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-top: 1px solid var(--line);
  }
  .od-priority-actions .desk-btn {
    flex: 1;
    max-width: 220px;
  }
  .od-row-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .od-mini-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .creative-experiment-board {
    padding: 15px;
    border-radius: 15px;
  }
  .creative-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .opsdesk-page {
    gap: 11px;
  }
  .opsdesk-kpi {
    padding: 9px 10px;
  }
  .opsdesk-kpi b {
    font-size: 16px;
  }
  .opsdesk-goal {
    display: flex;
    align-items: center;
  }
  .opsdesk-goal-ring {
    width: 100px;
    height: 100px;
  }
  .opsdesk-goal-meta {
    width: 100%;
  }
  .opsdesk-goal-note {
    width: 100%;
    text-align: left;
  }
  .opsdesk-side {
    display: flex;
  }
  .od-priority {
    grid-template-columns: minmax(0, 1fr);
  }
  .od-priority-rail {
    flex-direction: row;
    justify-content: flex-start;
    gap: 7px;
    padding: 7px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .od-row-actions .desk-btn,
  .od-row-actions .link-btn {
    flex: 1;
    justify-content: center;
  }
  .funnel-grid.five {
    grid-template-columns: minmax(0, 1fr);
  }
  .creative-experiment-stats {
    gap: 12px;
  }
  .creative-experiment-stats b {
    font-size: 16px;
  }
}

.od-hide-plan {
  color: var(--muted);
}

.od-hidden-plans {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.od-hidden-plans > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.od-hidden-plans > summary::-webkit-details-marker {
  display: none;
}

.od-hidden-plans > summary span {
  margin-left: 6px;
  opacity: 0.75;
}

.od-hidden-plans > div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.od-hidden-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--soft, #f7f8fa);
}

.od-hidden-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.od-hidden-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.od-hidden-row span {
  color: var(--muted);
  font-size: 11px;
}
