/* ══════════════════════════════════════════════════════════
   磁力智投 · 运营台  —  移动优先设计系统
   ══════════════════════════════════════════════════════════ */

:root {
  --brand: #ff4d1f;
  --brand-2: #ff2b4e;
  --brand-deep: #d93a10;
  --brand-soft: #fff2ed;
  --grad: linear-gradient(135deg, #ff8a3d 0%, #ff4d1f 48%, #ff2b4e 100%);
  --ink: #15171c;
  --ink-2: #5b6272;
  --ink-3: #98a0b0;
  --line: #edeff3;
  --line-2: #e2e5eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --green: #00a870;
  --green-soft: #e6f9f0;
  --amber: #d98600;
  --amber-soft: #fff6e2;
  --red: #e23d3d;
  --red-soft: #fdecec;
  --blue: #2f6bff;
  --blue-soft: #eef3ff;
  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 15px;
  --shadow: 0 1px 2px rgba(20, 24, 35, 0.03), 0 12px 28px -20px rgba(20, 24, 35, 0.22);
  --shadow-pop: 0 18px 40px -16px rgba(20, 24, 35, 0.28);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Segoe UI", Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.i {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.muted {
  color: var(--ink-2);
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  z-index: 999;
}

/* ── 应用外框 ───────────────────────────────────────────── */

.app-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.page {
  padding: 0 16px calc(26px + var(--safe-b));
  animation: rise 0.36s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.app-frame.has-tab .page {
  padding-bottom: calc(92px + var(--safe-b));
}
.app-frame.no-tab .page {
  padding-bottom: calc(30px + var(--safe-b));
}

/* ── 顶部栏 ─────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(245, 246, 248, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.topbar-main {
  flex: 1;
  min-width: 0;
}
.topbar-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.topbar-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.1px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 24, 35, 0.03);
  transition: transform 0.12s ease, background 0.15s;
}
.icon-btn .i {
  width: 19px;
  height: 19px;
}
.icon-btn:active {
  transform: scale(0.93);
  background: #f6f7f9;
}
.icon-btn.busy .i {
  animation: spin 0.8s linear infinite;
}
.back-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.back-btn:active {
  transform: scale(0.94);
}

/* ── 顶部渐变卡 ─────────────────────────────────────────── */

.hero {
  position: relative;
  margin-top: 4px;
  padding: 16px 17px 14px;
  border-radius: var(--r-xl);
  color: #fff;
  background: var(--grad);
  box-shadow: 0 20px 36px -22px rgba(255, 61, 46, 0.75);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -86px;
  top: -128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: -80px;
  bottom: -138px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}
.hero-account {
  flex: 1;
  min-width: 0;
}
.hero-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.hero-id {
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.hero-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
  letter-spacing: 0.3px;
}
.hero-value {
  margin-top: 3px;
  font-size: clamp(30px, 9vw, 36px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
}
.hero-value .unit {
  font-size: 15px;
  font-weight: 600;
  margin-right: 1px;
  letter-spacing: 0;
}
.hero-value .dec {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.hero-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
  padding: 4px 8px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-delta .i {
  width: 13px;
  height: 13px;
}
.hero-delta small {
  font-weight: 400;
  opacity: 0.72;
  font-size: 10px;
}.hero-foot {
  display: flex;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-foot-item {
  flex: 1;
  min-width: 0;
}
.hero-foot-item + .hero-foot-item {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-foot-item span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2px;
}
.hero-foot-item b {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.kpi {
  position: relative;
  padding: 13px 14px 12px;
  background: var(--card);
  border-radius: var(--r-md);
  border: 1px solid rgba(20, 24, 35, 0.035);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kpi-ico {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.kpi-ico .i {
  width: 14px;
  height: 14px;
}
.kpi-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.2px;
}
.kpi-value {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.kpi-sub {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.kpi-sub .i {
  width: 11px;
  height: 11px;
}
.trend-up {
  color: var(--green) !important;
}
.trend-down {
  color: var(--red) !important;
}

/* ── 卡片 ───────────────────────────────────────────────── */

.card {
  margin-top: 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(20, 24, 35, 0.035);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.card-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.card-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 3px 0;
  border: 0;
  background: none;
  font-family: inherit;
}
.card-link .i {
  width: 13px;
  height: 13px;
}
.card-link:active {
  opacity: 0.6;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 13px 0;
}
.divider.dashed {
  background: none;
  border-top: 1px dashed var(--line-2);
}

/* ── 分段器 / 标签 ──────────────────────────────────────── */

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: #f1f2f5;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.segmented button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(20, 24, 35, 0.09);
}
.tabs {
  display: flex;
  padding: 4px;
  margin-top: 12px;
  border-radius: 14px;
  background: #eceef2;
}
.tabs button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: 0.18s;
}
.tabs button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(20, 24, 35, 0.08);
}
.tabs button .count {
  margin-left: 3px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11.5px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip.active {
  border-color: rgba(255, 77, 31, 0.28);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}
.chip .i {
  width: 13px;
  height: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

/* ── 运营建议 ───────────────────────────────────────────── */

.tip {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
}
.tip + .tip {
  margin-top: 8px;
}
.tip-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--amber-soft);
  color: var(--amber);
}
.tip-ico .i {
  width: 16px;
  height: 16px;
}
.tip.level-good .tip-ico {
  background: var(--green-soft);
  color: var(--green);
}
.tip.level-info .tip-ico {
  background: var(--blue-soft);
  color: var(--blue);
}
.tip-body {
  flex: 1;
  min-width: 0;
}
.tip-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.tip-desc {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-2);
}
.tip-action {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.tip-action:active {
  transform: scale(0.96);
}

/* ── 状态条 ─────────────────────────────────────────────── */

.status-bar {
  display: flex;
  height: 9px;
  border-radius: 99px;
  overflow: hidden;
  background: #f0f2f5;
  margin-top: 13px;
}
.status-seg {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.status-seg.active {
  background: linear-gradient(90deg, #ff7a3d, #ff4d1f);
}
.status-seg.paused {
  background: #ffc65c;
}
.status-seg.deleted {
  background: #d6dae2;
}
.status-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.status-legend button {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.status-legend b {
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.dot.active {
  background: var(--brand);
}
.dot.paused {
  background: #f5a623;
}
.dot.deleted {
  background: #cbd1db;
}

/* ── 排行 ───────────────────────────────────────────────── */

.rank-list {
  margin-top: 4px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rank-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.rank-no {
  width: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #c3c8d2;
  font-variant-numeric: tabular-nums;
  text-align: center;
  flex: 0 0 auto;
}
.rank-item:nth-child(1) .rank-no {
  color: var(--brand);
}
.rank-item:nth-child(2) .rank-no {
  color: #ff8a3d;
}
.rank-item:nth-child(3) .rank-no {
  color: #f5a623;
}
.rank-body {
  flex: 1;
  min-width: 0;
}
.rank-name {
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-meta {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.rank-val {
  text-align: right;
  flex: 0 0 auto;
}
.rank-val b {
  display: block;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.rank-val span {
  font-size: 10px;
  color: var(--ink-3);
}

/* ── 计划卡片 ───────────────────────────────────────────── */

.campaign-list {
  margin-top: 2px;
}
.campaign {
  position: relative;
  padding: 14px;
  margin-top: 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(20, 24, 35, 0.04);
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.2s;
  animation: rise 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.campaign:active {
  transform: scale(0.988);
}
.campaign.selected {
  border-color: rgba(255, 77, 31, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 77, 31, 0.1), var(--shadow);
}
.c-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.c-title {
  flex: 1;
  min-width: 0;
}
.c-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.c-meta .sep {
  color: #d5d9e1;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.pill.active {
  background: var(--green-soft);
  color: var(--green);
}
.pill.paused {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill.deleted {
  background: #f1f2f5;
  color: var(--ink-3);
}
.c-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-2);
}
.c-metric span {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}
.c-metric b {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}
.c-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #fafbfc;
}
.budget-line {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 7px;
}
.budget-line b {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.usage-bar {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: #e9ecf1;
  overflow: hidden;
  flex: 0 0 auto;
}
.usage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.4s ease;
}
.usage-bar i.hot {
  background: linear-gradient(90deg, #ffb347, #ff5a1f);
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
}
.link-btn:active {
  opacity: 0.6;
}
.c-check {
  margin-top: 2px;
}

/* 自定义开关 */
.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}
.switch .track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: #e4e7ec;
  transition: background 0.24s ease;
}
.switch .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 24, 35, 0.24);
  transition: transform 0.24s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.switch input:checked + .track {
  background: linear-gradient(135deg, #ff8a3d, #ff3b30);
}
.switch input:checked + .track .thumb {
  transform: translateX(18px);
}
.switch input:disabled + .track {
  opacity: 0.45;
}
.switch input:disabled {
  cursor: not-allowed;
}
.switch.pending .track {
  opacity: 0.65;
}

/* 复选框 */
.check {
  position: relative;
  width: 21px;
  height: 21px;
  display: inline-block;
  flex: 0 0 auto;
}
.check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  z-index: 2;
}
.check span {
  display: block;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1.5px solid #d3d8e0;
  background: #fff;
  transition: 0.16s;
}
.check input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 3px 8px -2px rgba(255, 77, 31, 0.6);
}
.check input:checked + span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg);
}

/* 批量操作条 */
.batch-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(66px + var(--safe-b));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(21, 23, 28, 0.96);
  backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: var(--shadow-pop);
  animation: sheetUp 0.26s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.batch-count {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.batch-count b {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.batch-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.batch-btn.primary {
  border-color: transparent;
  background: var(--grad);
}
.batch-btn:active {
  transform: scale(0.95);
}

/* ── 按钮 / 表单 ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f2f3f5;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: transform 0.12s ease, opacity 0.15s;
  user-select: none;
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn:active {
  transform: scale(0.975);
}
.btn[disabled],
.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(255, 61, 46, 0.9);
}
.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.btn-danger {
  background: var(--red-soft);
  color: var(--red);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12.5px;
}
.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row > .btn {
  flex: 1;
}
.field {
  display: block;
  margin-top: 14px;
}
.field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 13px;
  background: #f4f5f8;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: 0.18s;
  font-variant-numeric: tabular-nums;
}
.input::placeholder {
  color: #b3b9c4;
  font-weight: 400;
}
.input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 77, 31, 0.1);
}
.hint {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.amount-wrap {
  position: relative;
}
.amount-wrap .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
}
.amount-wrap .input {
  padding-left: 30px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.quick-amounts {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.quick-amounts button {
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 11.5px;
  color: var(--ink-2);
}
.quick-amounts button:active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.quick-amounts button.hot {
  border-color: rgba(255, 77, 31, 0.3);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

/* ── 详情页 ─────────────────────────────────────────────── */

.detail-hero {
  position: relative;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid rgba(20, 24, 35, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -52px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 31, 0.1), transparent 70%);
}
.detail-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-name {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.detail-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
}
.detail-toggle .dt-main {
  font-size: 12.5px;
  font-weight: 600;
}
.detail-toggle .dt-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.metric-cell {
  padding: 11px 10px;
  background: #fff;
}
.metric-cell span {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
}
.metric-cell b {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.info-list {
  margin-top: 4px;
}
.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.info-row:last-child {
  border-bottom: 0;
}
.info-row .k {
  color: var(--ink-3);
  flex: 0 0 auto;
}
.info-row .v {
  text-align: right;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}
.timeline {
  position: relative;
  margin-top: 6px;
  padding-left: 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 8px;
  width: 1px;
  background: var(--line-2);
}
.tl-item {
  position: relative;
  padding: 0 0 14px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--brand);
}
.tl-title {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
}
.tl-time {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  font-weight: 550;
  color: var(--ink-2);
}
.action-tile .i {
  width: 18px;
  height: 18px;
  color: var(--ink);
}
.action-tile:active {
  background: #fafbfc;
  transform: scale(0.97);
}
.action-tile.danger {
  color: var(--red);
}
.action-tile.danger .i {
  color: var(--red);
}

/* ── 计划详情 v2：先看结论，再看数据与动作 ───────────────── */

.detail-command {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #fff 0%, #fff 58%, #fff8f5 100%);
  border: 1px solid rgba(20, 24, 35, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-command::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -64px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 31, 0.12), transparent 68%);
  pointer-events: none;
}
.detail-command.warn {
  background: linear-gradient(135deg, #fff 0%, #fffdf7 62%, #fff6df 100%);
}
.detail-command.danger {
  background: linear-gradient(135deg, #fff 0%, #fff9f8 58%, #ffefed 100%);
}
.detail-command.ok {
  background: linear-gradient(135deg, #fff 0%, #fbfffd 58%, #edfbf4 100%);
}
.detail-command.muted {
  background: #fafbfc;
}
.detail-command-main,
.detail-north {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.detail-command-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.detail-command-name {
  margin: 9px 0 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 680;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.detail-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.detail-verdict {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 24, 35, 0.06);
}
.detail-verdict-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
}
.detail-verdict-icon .i {
  width: 14px;
  height: 14px;
}
.detail-command.warn .detail-verdict-icon {
  color: #a66b00;
  background: #fff2cf;
}
.detail-command.danger .detail-verdict-icon {
  color: var(--red);
  background: var(--red-soft);
}
.detail-command.ok .detail-verdict-icon {
  color: var(--green);
  background: var(--green-soft);
}
.detail-verdict b {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
}
.detail-verdict p {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.6;
}
.detail-north {
  padding: 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 24, 35, 0.07);
}
.detail-north-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-3);
  font-size: 9.5px;
}
.detail-north-value {
  display: block;
  margin-top: 5px;
  color: var(--brand-deep);
  font-size: 29px;
  line-height: 1.1;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.detail-north-value.pending {
  color: var(--ink-2);
  font-size: 22px;
  letter-spacing: -0.3px;
}
.detail-north > p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.55;
}
.detail-north-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 11px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--line);
}
.detail-north-grid > div {
  min-width: 0;
  padding: 7px 8px;
  background: #fff;
}
.detail-north-grid span,
.detail-north-grid b {
  display: block;
}
.detail-north-grid span {
  color: var(--ink-3);
  font-size: 8.5px;
}
.detail-north-grid b {
  margin-top: 2px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.detail-kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}
.detail-kpi {
  min-width: 0;
  padding: 11px 12px;
  background: #fff;
}
.detail-kpi span,
.detail-kpi b,
.detail-kpi small {
  display: block;
}
.detail-kpi span {
  color: var(--ink-3);
  font-size: 9.5px;
}
.detail-kpi b {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.detail-kpi small {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.45;
}
.detail-kpi.emphasis {
  background: linear-gradient(135deg, #fff7f3, #fff);
}
.detail-kpi.emphasis b {
  color: var(--brand-deep);
}
.detail-chart-wrap {
  min-height: 150px;
}
.detail-trend-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.detail-gate {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f6f8fb;
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.55;
}
.detail-gate .i {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--blue);
}
.detail-action-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}
.detail-action {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  color: var(--ink);
}
.detail-action:hover:not(:disabled) {
  border-color: rgba(255, 77, 31, 0.25);
  background: #fffaf8;
}
.detail-action:disabled {
  opacity: 0.45;
}
.detail-action-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
}
.detail-action-icon .i {
  width: 14px;
  height: 14px;
}
.detail-action > span:nth-child(2) {
  min-width: 0;
}
.detail-action b,
.detail-action small {
  display: block;
}
.detail-action b {
  font-size: 10.5px;
  font-weight: 600;
}
.detail-action small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 8.5px;
}
.detail-action > .i {
  width: 13px;
  height: 13px;
  color: var(--ink-3);
}
.detail-action.danger {
  color: var(--red);
}
.detail-action.danger .detail-action-icon {
  color: var(--red);
  background: var(--red-soft);
}
.detail-audit-card .timeline {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

/* ── 报表 ───────────────────────────────────────────────── */

.range-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.date-input {
  flex: 1;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.date-input:focus {
  border-color: var(--brand);
}
.range-sep {
  color: var(--ink-3);
  font-size: 11px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}
.sum-cell {
  background: #fff;
  padding: 12px 11px;
}
.sum-cell span {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}
.sum-cell b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.report-table {
  margin-top: 6px;
}
.rt-head {
  display: flex;
  gap: 8px;
  padding: 6px 0 8px;
  font-size: 10px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.rt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rt-row:last-child {
  border-bottom: 0;
}
.rt-name {
  flex: 1;
  min-width: 0;
}
.rt-name b {
  display: block;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rt-name span {
  font-size: 10px;
  color: var(--ink-3);
}
.rt-num {
  width: 62px;
  text-align: right;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.rt-num small {
  display: block;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--ink-3);
}
.chart-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.chart-note b {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1023px) {
  .report-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rt-head,
  .rt-row {
    min-width: 760px;
  }
}

/* ── 我的 ───────────────────────────────────────────────── */

.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #fff8f4, #fff 60%);
  border: 1px solid rgba(255, 77, 31, 0.1);
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex: 0 0 auto;
  box-shadow: 0 10px 18px -10px rgba(255, 61, 46, 0.8);
}
.profile-info {
  flex: 1;
  min-width: 0;
}
.profile-name {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.profile-tags {
  display: flex;
  gap: 5px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f3f4f7;
  font-size: 10px;
  color: var(--ink-2);
  font-weight: 500;
}
.tag.brand {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.tag.green {
  background: var(--green-soft);
  color: var(--green);
}
.menu-list {
  margin-top: 4px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}
.menu-item:last-child {
  border-bottom: 0;
}
.menu-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f5f6f9;
  color: var(--ink-2);
  flex: 0 0 auto;
}
.menu-ico .i {
  width: 16px;
  height: 16px;
}
.menu-text {
  flex: 1;
  min-width: 0;
}
.menu-text b {
  display: block;
  font-size: 12.5px;
  font-weight: 550;
}
.menu-text span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.menu-arrow {
  color: #c6cbd4;
}
.menu-arrow .i {
  width: 15px;
  height: 15px;
}
.audit-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.audit-item:last-child {
  border-bottom: 0;
}
.audit-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--brand-soft);
  color: var(--brand);
}
.audit-ico .i {
  width: 14px;
  height: 14px;
}
.audit-ico.green {
  background: var(--green-soft);
  color: var(--green);
}
.audit-ico.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.audit-main {
  flex: 1;
  min-width: 0;
}
.audit-title {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
}
.audit-title em {
  font-style: normal;
  color: var(--ink-2);
  font-weight: 400;
}
.audit-time {
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row .st {
  font-size: 12.5px;
  font-weight: 550;
}
.setting-row .ss {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.version {
  margin: 18px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: #b6bcc7;
  line-height: 1.7;
}

/* ── 空态 / 骨架屏 ──────────────────────────────────────── */

.empty {
  padding: 38px 18px;
  text-align: center;
}
.empty-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.empty-ico .i {
  width: 26px;
  height: 26px;
}
.empty-title {
  font-size: 13.5px;
  font-weight: 600;
}
.empty-desc {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.empty .btn {
  margin-top: 14px;
}
.sk {
  border-radius: 10px;
  background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 37%, #eef0f4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk-line {
  height: 12px;
}
.sk-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.sk-hero {
  height: 168px;
  border-radius: var(--r-xl);
  margin-top: 4px;
}
.sk-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── 登录页 ─────────────────────────────────────────────── */

.login {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(158deg, #ff8a3d 0%, #ff4d1f 46%, #f5204b 100%);
  overflow: hidden;
}
.login::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.login::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -120px;
  top: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.login-top {
  position: relative;
  z-index: 1;
  padding: calc(58px + var(--safe-t)) 26px 26px;
  color: #fff;
}
.login-mark {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
}
.login-title {
  margin-top: 18px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1.25;
}
.login-tagline {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 280px;
}
.login-hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 24px;
}
.login-hero-stats div span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.66);
}
.login-hero-stats div b {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 650;
}
.login-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 22px calc(22px + var(--safe-b));
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -18px 40px rgba(120, 30, 10, 0.16);
}
.login-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.login-desc {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.login-actions {
  margin-top: 18px;
}
.login-actions .btn {
  height: 48px;
  border-radius: 15px;
}
.login-actions .btn + .btn {
  margin-top: 9px;
}
.login-actions .btn-ghost {
  border-color: var(--line-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.features {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
}
.feature-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex: 0 0 auto;
}
.feature-ico .i {
  width: 14px;
  height: 14px;
}
.feature b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.feature p {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.login-foot {
  margin-top: auto;
  padding-top: 16px;
  font-size: 10px;
  line-height: 1.6;
  color: #b3b9c4;
  text-align: center;
}
.error-banner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--red-soft);
  color: #b3261e;
  font-size: 11.5px;
  line-height: 1.55;
}
.error-banner .i {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}
.setup-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 接入指引 ───────────────────────────────────────────── */

.setup-hero {
  margin-top: 4px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #fff6f1, #fff);
  border: 1px solid rgba(255, 77, 31, 0.12);
}
.setup-hero h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.setup-hero p {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.status-chip.ok {
  background: var(--green-soft);
  color: var(--green);
}
.step {
  display: flex;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 0;
}
.step-no {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
}
.step-body {
  flex: 1;
  min-width: 0;
}
.step-body h3 {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.step-body p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}
.code {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f2f3f6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  word-break: break-all;
}
.code-block {
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #171a20;
  color: #e8ebf2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
}
.code-block .k {
  color: #ff9a76;
}
.code-block .c {
  color: #6d7688;
}
.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #f7f8fa;
  border: 1px dashed var(--line-2);
  font-size: 10.5px;
  color: var(--ink-2);
  word-break: break-all;
}
.copy-row code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
}
.copy-btn {
  border: 0;
  background: #fff;
  border-radius: 7px;
  height: 26px;
  padding: 0 9px;
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(20, 24, 35, 0.1);
  flex: 0 0 auto;
}
details.advanced {
  margin-top: 12px;
}
details.advanced summary {
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-2);
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}
details.advanced summary::-webkit-details-marker {
  display: none;
}
details.advanced summary::before {
  content: "＋";
  margin-right: 6px;
  color: var(--brand);
  font-weight: 600;
}
details.advanced[open] summary::before {
  content: "－";
}

/* ── 底部弹层 ───────────────────────────────────────────── */

#overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 14, 20, 0.46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: auto;
  animation: fade 0.2s ease both;
}
.sheet-mask.closing {
  animation: fadeOut 0.18s ease both;
}
.sheet-panel {
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  padding: 8px 18px calc(18px + var(--safe-b));
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px rgba(10, 14, 24, 0.25);
  animation: sheetUp 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  pointer-events: auto;
}
.sheet-mask.closing .sheet-panel {
  animation: sheetDown 0.18s ease both;
}
.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: 99px;
  background: #e5e8ee;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
}
.sheet-head h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.sheet-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f3f6;
  color: var(--ink-2);
}
.sheet-close .i {
  width: 15px;
  height: 15px;
}
.sheet-body {
  padding-top: 6px;
}
.sheet-foot {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}
.sheet-foot .btn {
  flex: 1;
}
.confirm {
  max-width: 320px;
  width: calc(100% - 32px);
  margin: 0;
  border-radius: 22px;
  padding: 22px 20px 18px;
  animation: popIn 0.24s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.confirm-mask {
  align-items: center;
}
.confirm-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.confirm-icon.danger {
  background: var(--red-soft);
  color: var(--red);
}
.confirm-icon .i {
  width: 21px;
  height: 21px;
}
.confirm h3 {
  text-align: center;
  font-size: 16px;
  font-weight: 650;
}
.confirm p {
  margin-top: 7px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.confirm-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}
.confirm-actions .btn {
  flex: 1;
  height: 42px;
  font-size: 13.5px;
}

/* ── Toast ──────────────────────────────────────────────── */

.toasts {
  position: absolute;
  top: calc(12px + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 86%;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 11px;
  border-radius: 12px;
  background: rgba(24, 27, 34, 0.94);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 12px 26px -10px rgba(10, 14, 24, 0.5);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.22s, transform 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast .i {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.toast-success .i {
  color: #38d39f;
}
.toast-error .i {
  color: #ff7b72;
}
.toast-info .i {
  color: #ffb066;
}

/* ── 底部导航 ───────────────────────────────────────────── */

.tabbar {
  flex: 0 0 auto;
  display: flex;
  height: calc(58px + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  z-index: 50;
}
.tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 0;
  color: #9aa1b0;
  transition: color 0.16s;
}
.tab .i {
  width: 21px;
  height: 21px;
  stroke-width: 1.85;
  transition: transform 0.2s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.tab-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.tab.active {
  color: var(--brand);
}
.tab.active .i {
  transform: translateY(-1.5px);
  stroke-width: 2.1;
}
.tab:active .i {
  transform: scale(0.9);
}

/* ── 下拉刷新 ───────────────────────────────────────────── */

.ptr {
  position: absolute;
  top: calc(6px + var(--safe-t));
  left: 50%;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 24, 35, 0.16);
  opacity: 0;
  transform: translateY(-14px);
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 30;
  pointer-events: none;
}
.ptr-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffd6c9;
  border-top-color: var(--brand);
}
.ptr.loading {
  opacity: 1;
  transform: translateY(0);
}
.ptr.loading .ptr-spinner {
  animation: spin 0.7s linear infinite;
}

/* ── 提示条 / 其他 ──────────────────────────────────────── */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: #2b57c9;
  font-size: 10.5px;
  line-height: 1.55;
}
.notice .i {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.notice.warn {
  background: var(--amber-soft);
  color: #8a5a00;
}
.badge-demo {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.spinner.dark {
  border-color: #e6e9ef;
  border-top-color: var(--brand);
}

/* ── 动画 ───────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes sheetDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

/* ── 桌面预览 ───────────────────────────────────────────── */

@media (min-width: 560px) {
  body {
    display: grid;
    place-items: center;
    padding: 20px;
    background:
      radial-gradient(900px 520px at 12% 0%, #ffe6dc 0%, transparent 62%),
      radial-gradient(900px 520px at 92% 100%, #e4ecff 0%, transparent 60%), #eef1f6;
  }
  .app-frame {
    width: 428px;
    height: min(916px, calc(100dvh - 40px));
    border-radius: 32px;
    box-shadow:
      0 50px 100px -40px rgba(20, 30, 60, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.7),
      0 2px 6px rgba(20, 30, 60, 0.08);
  }
  .sheet-mask {
    border-radius: 32px;
    overflow: hidden;
  }
}

@media (max-width: 359px) {
  .c-metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 8px;
  }
  .hero-foot-item b {
    font-size: 12px;
  }
  .kpi-value {
    font-size: 18px;
  }
}

/* ── 晚高峰补量方案 ─────────────────────────────────────── */
.pace-plan-sheet .sheet-body {
  padding-bottom: 8px;
}
.pace-plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pace-plan-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  color: var(--ink-2);
  font-size: 13px;
}
.pace-plan-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(135deg, #ff8a3d 0%, #ff4d1f 52%, #ff2b4e 100%);
  box-shadow: 0 14px 30px -18px rgba(255, 77, 31, 0.75);
}
.pace-plan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.pace-plan-kicker svg {
  width: 14px;
  height: 14px;
}
.pace-plan-hero h3 {
  margin: 8px 0 6px;
  font-size: 19px;
  line-height: 1.35;
}
.pace-plan-hero p {
  font-size: 12.5px;
  line-height: 1.65;
  opacity: 0.92;
}
.pace-plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.pace-plan-tags .tag {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pace-plan-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pace-plan-metrics > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.pace-plan-metrics span {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
}
.pace-plan-metrics b {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.pace-plan-metrics em {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.4;
}
.pace-plan-metrics em.warn {
  color: var(--amber);
}
.pace-plan-settings-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink-3);
  font-size: 11px;
}
.pace-plan-settings-line span,
.pace-plan-settings-line b {
  color: var(--ink-2);
  font-weight: 600;
}
.pace-plan-settings-line em {
  margin-left: auto;
  font-style: normal;
}
.pace-plan-advice {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #ffe2b8;
  border-radius: 14px;
  background: var(--amber-soft);
}
.pace-plan-advice > div {
  display: flex;
  gap: 7px;
  color: #7a4b00;
  font-size: 12px;
  line-height: 1.55;
}
.pace-plan-advice svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.pace-plan-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.pace-plan-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.pace-plan-section-head b {
  display: block;
  font-size: 14px;
}
.pace-plan-section-head span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}
.pace-plan-section-head > .tag {
  flex: 0 0 auto;
  margin: 0;
}
.pace-steps {
  display: grid;
  gap: 10px;
}
.pace-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pace-step-no {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
}
.pace-step > div {
  flex: 1;
  min-width: 0;
}
.pace-step b {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
}
.pace-step p {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
}
.pace-step em {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}
.pace-moves,
.pace-drafts {
  display: grid;
  gap: 10px;
}
.pace-move {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
}
.pace-move > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pace-move b {
  font-size: 12.5px;
}
.pace-move span {
  color: var(--ink-2);
  font-size: 11px;
}
.pace-move em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.pace-move p {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
}
.pace-plan-footnote {
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.5;
}
.pace-draft {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.pace-draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pace-draft-head b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}
.pace-draft-channel {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}
.pace-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}
.pace-draft-grid > div {
  padding: 8px 9px;
  border-radius: 10px;
  background: #f7f8fa;
}
.pace-draft-grid span {
  display: block;
  color: var(--ink-3);
  font-size: 10px;
}
.pace-draft-grid p {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
}
.pace-draft-reason {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
}
.pace-draft-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
}
.pace-draft-hint {
  color: var(--ink-3);
  font-size: 10px;
}
.pace-create-result {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fa;
}
.pace-create-result.good {
  border-color: #b9ecd7;
  background: var(--green-soft);
}
.pace-create-result.warn {
  border-color: #ffe2b8;
  background: var(--amber-soft);
}
.pace-create-result.bad {
  border-color: #f6c9c9;
  background: var(--red-soft);
}
.pace-create-result > b {
  display: block;
  font-size: 12px;
}
.pace-create-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 10.5px;
}
.pace-create-meta b {
  color: var(--ink);
}
.pace-create-warn,
.pace-create-error {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.5;
}
.pace-create-warn {
  color: #7a4b00;
}
.pace-create-error {
  color: var(--red);
}
.pace-safety {
  display: grid;
  gap: 7px;
}
.pace-safety li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.6;
}
.pace-safety li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  content: '';
}
.pace-plan-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: #7a4b00;
  font-size: 11.5px;
  line-height: 1.5;
}
.pace-plan-empty svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.pace-platform-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef3ff;
  color: #31508f;
  font-size: 11px;
  line-height: 1.55;
}
.pace-platform-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 长任务进度浮窗：真实建计划等 20-120 秒操作 */
.task-progress-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 16, 27, 0.52);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.task-progress-mask.open { opacity: 1; }
.task-progress-mask.closing { opacity: 0; }
.task-progress-panel {
  width: min(500px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px -28px rgba(5, 10, 20, 0.6);
  animation: sheetUp 0.24s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.tp-head { display: flex; align-items: flex-start; gap: 12px; }
.tp-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.tp-icon .i { width: 22px; height: 22px; animation: spin 1.1s linear infinite; }
.task-progress-panel.done .tp-icon { background: var(--green-soft); color: var(--green); }
.task-progress-panel.done .tp-icon .i { animation: none; }
.task-progress-panel.failed .tp-icon { background: var(--red-soft); color: var(--red); }
.task-progress-panel.failed .tp-icon .i { animation: none; }
.tp-head h3 { font-size: 16px; letter-spacing: -0.01em; }
.tp-head p { margin-top: 4px; color: var(--ink-3); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.tp-elapsed { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--ink-3); font-size: 9px; }
.tp-track { height: 6px; margin: 8px 0 16px; overflow: hidden; border-radius: 99px; background: #edf0f4; }
.tp-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9b52, #ff4d1f); transition: width 0.45s ease; }
.task-progress-panel.done .tp-track i { background: linear-gradient(90deg, #27c990, #00a870); }
.task-progress-panel.failed .tp-track i { background: var(--red); }
.tp-steps { display: flex; flex-direction: column; gap: 2px; }
.tp-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--ink-3); }
.tp-step.active { background: #fff8f4; color: var(--ink); }
.tp-step.done { color: var(--ink-2); }
.tp-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 700;
}
.tp-step.active .tp-dot { border-color: #ffc9b6; background: var(--brand-soft); color: var(--brand-deep); }
.tp-step.done .tp-dot { border-color: #bfe9d8; background: var(--green-soft); color: var(--green); }
.tp-step.error .tp-dot { border-color: #f4c4c1; background: var(--red-soft); color: var(--red); }
.tp-dot .spinner { width: 11px; height: 11px; border-width: 1.6px; }
.tp-step b { display: block; font-size: 11px; }
.tp-step small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.tp-foot > span { color: var(--ink-3); font-size: 9px; line-height: 1.5; }
.tp-foot .btn { flex: 0 0 auto; }

/* ── 广告户快速切换 ─────────────────────────────────────── */
.opsdesk-account-chip.is-switchable {
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}
.opsdesk-account-chip.is-switchable:hover,
.opsdesk-account-chip.is-switchable:focus-visible {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 77, 31, 0.08);
  outline: none;
}
.account-mobile-switch { flex: 0 0 auto; }
.account-switcher-sheet { padding-bottom: calc(16px + var(--safe-b)); }
.as-sync-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}
.as-sync-copy { min-width: 0; }
.as-sync-copy b {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}
.as-sync-copy span {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.as-sync-all {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  font-size: 9.5px;
  white-space: nowrap;
}
.as-sync-all .i { width: 12px; height: 12px; }
.as-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ffe0d4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8f4 0%, #fff 72%);
}
.as-overview span {
  display: block;
  color: var(--ink-3);
  font-size: 9px;
}
.as-overview b {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.as-overview small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}
.as-overview em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 99px;
  background: #fff;
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px #ffd9cb;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
}
.as-search {
  position: relative;
  display: block;
  margin-top: 12px;
}
.as-search > .i {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  transform: translateY(-50%);
  pointer-events: none;
}
.as-search input {
  width: 100%;
  height: 42px;
  padding: 0 82px 0 35px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.as-search input::placeholder { color: #aeb5c1; }
.as-search input:focus {
  border-color: #ffb59c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 77, 31, 0.08);
}
.as-search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 8.5px;
  transform: translateY(-50%);
  pointer-events: none;
}
.as-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 1px 6px;
  color: var(--ink-3);
  font-size: 9px;
}
.as-result-line span { color: var(--ink-2); font-weight: 600; }
.as-results {
  max-height: min(50vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.as-group + .as-group { margin-top: 14px; }
.as-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 3px 7px;
}
.as-group-title { min-width: 0; }
.as-group-head b {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
}
.as-group-head span {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 8.5px;
}
.as-group-head span.is-error { color: var(--red); }
.as-group-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.as-group-head em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
}
.as-sync-one {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 8.5px;
}
.as-sync-one:hover { border-color: #ffc5b1; color: var(--brand-deep); background: #fffaf7; }
.as-sync-one:disabled { cursor: wait; opacity: 0.55; }
.as-sync-one .i { width: 10px; height: 10px; }
.as-binding-rename {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-3);
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}
.as-binding-rename:hover { border-color: #ffc5b1; color: var(--brand-deep); background: #fffaf7; }
.as-binding-rename:disabled { cursor: wait; opacity: 0.55; }
.as-binding-rename .i { width: 11px; height: 11px; }
.as-accounts { display: grid; gap: 6px; }
.as-account-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.as-account-row .as-account { flex: 1; width: auto; min-width: 0; }
.as-account-row.is-disabled .as-account { opacity: 0.62; background: #fafbfc; }
.as-account-row.is-disabled .as-account:hover { border-color: var(--line); background: #fafbfc; }
.as-row-actions {
  flex: 0 0 46px;
  display: grid;
  grid-template-rows: 26px minmax(0, 1fr);
  gap: 5px;
}
.as-account-icon {
  display: grid;
  place-items: center;
  width: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-3);
}
.as-account-icon:hover { border-color: #ffc5b1; background: #fffaf7; color: var(--brand-deep); }
.as-account-icon:disabled { cursor: wait; opacity: 0.55; }
.as-account-icon .i { width: 13px; height: 13px; }
.as-account-status {
  flex: 0 0 46px;
  width: 46px;
  border: 1px solid #ffd8cd;
  border-radius: 12px;
  background: #fff8f5;
  color: #e5532b;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.as-account-status:hover { border-color: #ffb59f; background: #fff3ee; }
.as-account-status.is-enable {
  border-color: #bfe8d4;
  background: #f2fbf6;
  color: var(--green);
}
.as-account-status.is-enable:hover { border-color: #92d9b6; background: #eaf8f0; }
.as-account-status:disabled { cursor: wait; opacity: 0.55; }
.as-account {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.as-account:hover {
  border-color: #ffc5b1;
  background: #fffaf7;
}
.as-account.current {
  border-color: #ffc1aa;
  background: linear-gradient(135deg, #fff8f4, #fff);
  box-shadow: inset 3px 0 0 var(--brand);
}
.as-account:disabled { cursor: wait; opacity: 0.62; }
.as-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #2c3443, #101827);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.as-avatar.demo { background: linear-gradient(135deg, #ff9a5f, #ff4d1f); }
.as-main { min-width: 0; }
.as-name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.as-name-line b { min-width: 0; }
.as-local-badge {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 99px;
  background: #eef2ff;
  color: #4d5bd6;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
}
.as-main b {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.as-main span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 8.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.as-platform-line { color: #8b93a1 !important; font-size: 8.2px !important; }
.as-side {
  min-width: 62px;
  text-align: right;
}
.as-side b {
  display: block;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.as-side b.is-error {
  color: var(--red);
  font-size: 9.5px;
}
.as-side em {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 8.5px;
  font-style: normal;
}
.as-account.current .as-side em { color: var(--brand-deep); font-weight: 600; }
.as-side .i { width: 10px; height: 10px; }
.as-side .spinner { width: 10px; height: 10px; border-width: 1.5px; }
.as-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 18px 24px;
  color: var(--ink-3);
  text-align: center;
}
.as-empty .i { width: 24px; height: 24px; opacity: 0.5; }
.as-empty b { color: var(--ink-2); font-size: 11px; }
.as-empty span { font-size: 9px; }

.mobile-brandbar {
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 32px);
  margin: calc(8px + var(--safe-t)) 16px 0;
  padding: 8px 11px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px -18px rgba(20, 24, 35, 0.3);
  text-align: left;
}
.mobile-brandbar[hidden] { display: none; }
.mobile-brandbar.active { border-color: #ffc7b4; background: #fff8f4; }
.mobile-brand-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.mobile-brand-text { flex: 1; min-width: 0; }
.mobile-brand-text b { display: block; font-size: 12px; font-weight: 700; }
.mobile-brand-text small { display: block; margin-top: 1px; color: var(--ink-3); font-size: 9px; }
.mobile-brand-chevron { color: var(--ink-3); font-size: 20px; line-height: 1; }
.brand-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 2px 12px;
}
.brand-sheet-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.brand-sheet-head b { display: block; font-size: 13px; }
.brand-sheet-head span:not(.brand-sheet-logo) { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9.5px; }
.brand-sheet-list { display: grid; gap: 7px; }
.brand-sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-align: left;
}
.brand-sheet-item:hover { border-color: #ffc5b1; background: #fffaf7; }
.brand-sheet-item .i { width: 19px; height: 19px; color: var(--brand-deep); }
.brand-sheet-item > span { flex: 1; min-width: 0; }
.brand-sheet-item b { display: block; font-size: 11.5px; }
.brand-sheet-item small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 9px; }
.brand-sheet-item > .i:last-child { width: 13px; height: 13px; color: var(--ink-3); }
.brand-sheet-sub {
  margin-top: -5px;
  padding-left: 26px;
  border-style: dashed;
}
.brand-sheet-sub > .i:first-child {
  width: 16px;
  height: 16px;
}

@media (min-width: 1024px) {
  .mobile-brandbar { display: none !important; }
}

@media (min-width: 1024px) {
  .account-switcher-mask {
    align-items: center;
    padding: 28px;
  }
  .account-switcher-sheet {
    width: min(590px, calc(100vw - 72px));
    max-height: min(730px, 84vh);
    padding: 8px 22px 20px;
    border-radius: 24px;
    animation: popIn 0.24s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }
  .account-switcher-sheet .sheet-handle { display: none; }
  .account-switcher-sheet .sheet-head { padding: 8px 2px 4px; }
  .as-results { max-height: min(48vh, 440px); }
}

@media (max-width: 559px) {
  .as-search input { padding-right: 12px; }
  .as-search kbd { display: none; }
  .as-overview em { display: none; }
}

/* ── 定时任务总管理 ─────────────────────────────────────── */
.scheduler-card { margin-top: 14px; }
.scheduler-head { align-items: flex-start; gap: 12px; }
.scheduler-master {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
}
.scheduler-master:hover { border-color: #ffc5b1; background: #fffaf7; }
.scheduler-master.is-on { border-color: #bfe8d4; background: #f2fbf6; color: var(--green); }
.scheduler-master:disabled { cursor: not-allowed; opacity: 0.6; }
.scheduler-master-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6cbd4;
  box-shadow: 0 0 0 3px rgba(198, 203, 212, 0.16);
}
.scheduler-master.is-on .scheduler-master-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 160, 99, 0.12);
}
.scheduler-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--ink-2);
  font-size: 10px;
}
.scheduler-summary small { color: var(--ink-3); font-size: 9px; }
.scheduler-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 10px;
  padding: 8px 11px;
  border: 1px solid #f5dfb5;
  border-radius: 10px;
  background: #fffaf0;
  color: #9a6a19;
  font-size: 9.5px;
}
.scheduler-lock .i { width: 13px; height: 13px; flex: 0 0 auto; }
.scheduler-list { display: grid; gap: 8px; }
.scheduler-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.scheduler-row.is-on { border-color: #ffd9cc; background: linear-gradient(135deg, #fffaf7, #fff); }
.scheduler-row.is-unavailable { background: #fafbfc; }
.scheduler-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5f6f9;
  color: var(--ink-2);
}
.scheduler-row.is-on .scheduler-icon { background: var(--brand-soft); color: var(--brand); }
.scheduler-icon .i { width: 16px; height: 16px; }
.scheduler-main { flex: 1; min-width: 0; }
.scheduler-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.scheduler-name b { color: var(--ink); font-size: 11.5px; }
.scheduler-name .tag { padding: 1px 5px; font-size: 8px; }
.scheduler-main p { margin: 3px 0 0; color: var(--ink-3); font-size: 9.5px; line-height: 1.45; }
.scheduler-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 8.5px;
}
.scheduler-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--amber);
  font-size: 8.5px;
}
.scheduler-note .i { width: 11px; height: 11px; }
.scheduler-toggle {
  flex: 0 0 auto;
  min-width: 56px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #ffd8cd;
  border-radius: 9px;
  background: #fff8f5;
  color: #e5532b;
  font: inherit;
  font-size: 9.5px;
  font-weight: 650;
}
.scheduler-toggle:hover { border-color: #ffb59f; background: #fff3ee; }
.scheduler-toggle.is-on { border-color: #ffc5b1; background: #fff; color: #e5532b; }
.scheduler-toggle:disabled { cursor: not-allowed; opacity: 0.45; }

@media (max-width: 720px) {
  .scheduler-head { flex-direction: column; align-items: stretch; }
  .scheduler-row { align-items: flex-start; }
  .scheduler-toggle { margin-top: 2px; }
}
