
.ec-auto-card {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04));
}
.ec-auto-card.is-off {
  border-color: color-mix(in srgb, var(--warn, #b45309) 40%, var(--border));
  background: color-mix(in srgb, var(--warn, #b45309) 7%, var(--surface));
}
.ec-auto-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ec-auto-text { flex: 1; min-width: 240px; }
.ec-auto-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ec-auto-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--text, #111827);
}
.ec-auto-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text, #111827);
}
.ec-auto-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #6b7280);
}
.ec-save-status {
  font-size: 12px;
  color: var(--muted, #6b7280);
  min-height: 1.2em;
  white-space: nowrap;
}
.ec-save-status[data-kind="ok"] { color: var(--success, #15803d); }
.ec-save-status[data-kind="saving"] { color: var(--muted, #6b7280); }
.ec-save-status[data-kind="err"] { color: var(--danger, #b91c1c); }
.ec-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  max-width: 100%;
}
.ec-switch-lg {
  flex-shrink: 0;
  padding: 10px 12px;
}
.ec-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ec-switch-track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  flex-shrink: 0;
  transition: background .15s ease;
}
.ec-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.ec-switch input:checked + .ec-switch-track {
  background: var(--accent, #3b82f6);
}
.ec-switch input:checked + .ec-switch-track .ec-switch-thumb {
  transform: translateX(16px);
}
.ec-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ec-switch-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #111827);
  line-height: 1.3;
}
.ec-switch-compact {
  padding: 4px 8px;
  border-radius: 8px;
  gap: 8px;
}
.ec-switch-compact .ec-switch-track {
  width: 32px;
  height: 18px;
}
.ec-switch-compact .ec-switch-thumb {
  width: 14px;
  height: 14px;
}
.ec-switch-compact input:checked + .ec-switch-track .ec-switch-thumb {
  transform: translateX(14px);
}
.ec-module-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ec-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.ec-media-row > .ec-module {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.ec-media-row > .ec-module > .ec-module-body {
  flex: 1;
}
.ec-media-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ec-media-foot { margin-top: auto; padding-top: 4px; }
.ec-tag-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface, #fff);
  cursor: text;
}
.ec-tag-box:focus-within {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #3b82f6) 18%, transparent);
}
.ec-tag-list {
  display: contents;
}
.ec-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #3b82f6) 12%, var(--surface-2, #f4f6f8));
  color: var(--text, #111827);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}
.ec-tag-chip:hover {
  background: color-mix(in srgb, var(--danger, #b91c1c) 12%, var(--surface-2, #f4f6f8));
}
.ec-tag-x {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #6b7280);
  line-height: 1;
}
.ec-tag-input {
  flex: 1;
  min-width: 96px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  padding: 4px 2px;
  color: var(--text, #111827);
}
.ec-auto-off-banner {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--warn, #b45309);
  background: color-mix(in srgb, var(--warn, #b45309) 12%, var(--surface));
}
.ec-auto-off-banner[hidden] { display: none !important; }
.ec-modules.is-erchuang-off {
  position: relative;
  opacity: 0.48;
  filter: grayscale(0.15);
  pointer-events: none;
  user-select: none;
}
.ec-modules.is-erchuang-off::after {
  content: '二创已关闭 · 以下设置不生效';
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #111827);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
  pointer-events: none;
}
.ec-extra-fold {
  margin-top: 4px;
  border: 1px dashed var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface-2, #f8fafc);
  overflow: hidden;
}
.ec-extra-fold.is-open {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent, #3b82f6) 28%, var(--border));
  background: color-mix(in srgb, var(--accent, #3b82f6) 5%, var(--surface));
}
.ec-extra-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--text, #111827);
}
.ec-extra-toggle-label { font-size: 13px; font-weight: 600; }
.ec-extra-toggle-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted, #6b7280);
}
.ec-extra-panel { padding: 0 12px 12px; }
.ec-extra-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3, #eef1f4);
  color: var(--muted, #6b7280);
}
.ec-extra-badge.is-filled {
  background: var(--primary-soft, #e0e7ff);
  color: var(--primary, #3730a3);
}
@media (max-width: 960px) {
  .ec-media-row { grid-template-columns: 1fr; }
}
    :root {
      /* Surfaces */
      --bg: #F7F8FA;
      --surface: #FFFFFF;
      --surface-2: #F4F6F8;
      --surface-3: #EEF1F4;
      --card: var(--surface);
      --sidebar: #0B1220;
      --sidebar-hover: rgba(255,255,255,.06);
      --sidebar-active: rgba(37,99,235,.18);
      --sidebar-w: 184px;

      /* Text */
      --text: #111827;
      --muted: #6B7280;
      --subtle: #9CA3AF;

      /* Borders & elevation */
      --border: #E6E8EC;
      --border-strong: #D0D4DC;
      --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
      --shadow-md: 0 4px 12px rgba(15,23,42,.06);
      --shadow-lg: 0 16px 40px rgba(15,23,42,.12);

      /* Brand — single accent */
      --primary: #2563EB;
      --primary-hover: #1D4ED8;
      --primary-soft: #EFF6FF;
      --primary-border: #BFDBFE;
      --secondary: #475569;
      --secondary-hover: #334155;

      /* Status — calm */
      --success: #059669;
      --success-soft: #ECFDF5;
      --success-border: #A7F3D0;
      --warn: #D97706;
      --warn-soft: #FFFBEB;
      --warn-border: #FDE68A;
      --danger: #DC2626;
      --danger-soft: #FEF2F2;
      --danger-border: #FECACA;

      /* Platform identity */
      --plat-tencent: #1D4ED8;
      --plat-tencent-soft: #EFF6FF;
      --plat-kuaishou: #EA580C;
      --plat-kuaishou-soft: #FFF7ED;
      --plat-douyin: #DB2777;
      --plat-douyin-soft: #FDF2F8;
      --plat-xhs: #DC2626;
      --plat-xhs-soft: #FEF2F2;
      --plat-baijiahao: #059669;
      --plat-baijiahao-soft: #ECFDF5;
      --plat-bilibili: #FB7299;
      --plat-bilibili-soft: #FFF1F5;
      --plat-tiktok: #111827;
      --plat-tiktok-soft: #F3F4F6;

      /* Radius & type */
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 14px;
      --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
      --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
      --ease: 160ms ease;
    }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
    button, input, textarea, select { font-family: inherit; }
    a { color: var(--primary); }
    ::selection { background: var(--primary-soft); color: var(--text); }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
    .app { display: flex; min-height: 100vh; }
    .sidebar { width: var(--sidebar-w); background: var(--sidebar); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; border-right: 1px solid rgba(255,255,255,.06); }
    .brand { padding: 18px 12px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; border-bottom: 1px solid rgba(255,255,255,.08); }
    .brand-mark { display: flex; align-items: center; gap: 9px; min-width: 0; }
    .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand-logo {
      width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
      background: linear-gradient(145deg, #3B82F6 0%, #1D4ED8 100%);
      display: inline-flex; align-items: center; justify-content: center;
      box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 2px 6px rgba(29,78,216,.35);
    }
    .brand-logo svg { width: 20px; height: 20px; color: #fff; }
    .nav { padding: 12px 8px 14px; flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
    .nav-group { margin-bottom: 14px; }
    .nav-group:last-child { margin-bottom: 0; }
    .nav-group-label {
      padding: 2px 10px 5px;
      font-size: 10.5px; font-weight: 500; letter-spacing: .04em;
      color: rgba(255,255,255,.34); user-select: none; line-height: 1.2;
    }
    .nav a {
      position: relative; display: flex; align-items: center; gap: 8px;
      padding: 8px 10px 8px 12px; color: rgba(255,255,255,.72); text-decoration: none;
      border-radius: 7px; margin-bottom: 1px; font-size: 13px; font-weight: 500;
      transition: background var(--ease), color var(--ease);
    }
    .nav a:hover { background: var(--sidebar-hover); color: #fff; }
    .nav a.active {
      background: var(--sidebar-active); color: #fff;
    }
    .nav a.active::before {
      content: ""; position: absolute; left: 3px; top: 7px; bottom: 7px; width: 2px;
      border-radius: 2px; background: #60A5FA;
    }
    .nav a .nav-ico {
      width: 16px; height: 16px; flex-shrink: 0; opacity: .85;
      display: inline-flex; align-items: center; justify-content: center;
    }
    .nav a .nav-ico svg { width: 16px; height: 16px; display: block; }
    .nav a.active .nav-ico { opacity: 1; }
    .nav a .nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
    .topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; top: 0; z-index: 40; }
    .topbar h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
    .topbar-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
    .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--success-soft); color: var(--success); border: 1px solid transparent; }
    .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
    .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
    .badge.err { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
    .content { padding: 24px 28px 40px; flex: 1; overflow: auto; }
    .page { display: none; }
    .page.active { display: block; }
    .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
    .cards.cards-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; align-items: stretch; }
    .card { background: var(--card); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: border-color var(--ease), box-shadow var(--ease); }
    .cards.cards-dash .card {
      display: flex; flex-direction: column; min-height: 124px; padding: 16px 18px 14px;
    }
    .card.card-warn { border-color: var(--warn-border); background: var(--warn-soft); }
    .card-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
    .card-value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
    .cards.cards-dash .card-value {
      display: flex; align-items: baseline; line-height: 1.15; min-height: 34px;
    }
    .card-sub { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
    .cards.cards-dash .card-sub { margin-top: auto; padding-top: 10px; }
    .card-sub a { color: var(--primary); text-decoration: none; }
    .card-sub a:hover { text-decoration: underline; }
    .card-sub .btn { vertical-align: middle; padding: 2px 8px; height: auto; }
    .card-value-status { font-size: inherit; font-weight: 700; letter-spacing: -.02em; }
    .card-value-status.is-ok { color: var(--success); }
    .card-value-status.is-muted { color: var(--muted); font-weight: 600; }
    .dash-section { margin: 4px 0 8px; }
    .dash-section-head {
      font-size: 13px; font-weight: 600; color: var(--muted);
      letter-spacing: .02em; margin: 0 0 10px;
    }
    .dash-shortcuts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .dash-shortcut {
      display: flex; flex-direction: row; align-items: center; justify-content: space-between;
      gap: 12px; min-width: 0; padding: 12px 14px;
      background: var(--card); border: 1px solid var(--border);
      border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
      color: var(--text); text-decoration: none;
      transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
    }
    .dash-shortcut:hover {
      border-color: var(--border-strong); box-shadow: var(--shadow-md);
      color: var(--text); text-decoration: none;
    }
    .dash-shortcut-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .dash-shortcut-title {
      display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text);
    }
    .dash-shortcut-desc {
      display: block; font-size: 12px; line-height: 1.45; color: var(--muted);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .dash-shortcut-go {
      flex-shrink: 0; color: var(--muted); font-size: 20px; line-height: 1; font-weight: 400;
    }
    .dash-shortcut:hover .dash-shortcut-go { color: var(--primary); }
    .dash-runtime-banner { background: var(--warn-soft); color: var(--warn); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; display: none; }
    .dash-runtime-banner.show { display: block; }
    .dash-onboard { background: var(--surface-2, var(--bg-elevated, #f6f7f9)); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
    .dash-onboard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
    .dash-onboard-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
    .dash-onboard-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
    .dash-onboard-steps li.is-done { color: var(--success); }
    .dash-onboard-steps a { color: var(--fg); font-weight: 600; text-decoration: none; }
    .dash-onboard-steps a:hover { text-decoration: underline; }
    .dash-onboard-num { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--border); color: var(--fg); flex-shrink: 0; }
    .dash-onboard-steps li.is-done .dash-onboard-num { background: var(--success-soft); color: var(--success); }
    .dash-today-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; background: var(--card); border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
    .dash-today-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; }
    .dash-today-date { font-size: 16px; font-weight: 700; color: var(--text); }
    .dash-today-hint { margin-left: auto; font-size: 12px; color: var(--muted); }
    .card-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .card-label-row .card-label { margin-bottom: 0; }
    .card-date-tag { font-size: 11px; color: var(--muted); white-space: nowrap; }
    .card-value-note { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
    .dash-exec-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
    .dash-exec-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--border); }
    .dash-exec-main { min-width: 0; }
    .dash-exec-label { font-weight: 600; color: var(--text); }
    .dash-exec-sub { color: var(--muted); margin-top: 2px; }
    .dash-exec-stat { white-space: nowrap; font-weight: 600; }
    .pub-result-ok { color: var(--success); font-weight: 600; }
    .pub-result-warn { color: var(--warn); font-weight: 600; }
    .pub-result-fail { color: var(--danger); font-weight: 600; }
    .pub-acct-cell { font-size: 12px; line-height: 1.45; }
    .pub-acct-cell strong { font-weight: 600; }
    .dash-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
    @media (max-width: 960px) { .dash-split { grid-template-columns: 1fr; } }
    .dash-pipeline-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
    .dash-pipeline-row:last-child { border-bottom: none; }
    .dash-pipeline-row:hover { background: var(--surface-2); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
    .dash-pipeline-main { font-size: 14px; font-weight: 600; }
    .dash-pipeline-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dash-pipeline-count { font-size: 20px; font-weight: 700; color: var(--primary); white-space: nowrap; }
    .dash-pipeline-count.empty { color: var(--warn); }
    .dash-pipeline-count.loading { color: var(--muted); font-size: 13px; font-weight: 500; }
    .dash-pipeline-count.err { color: var(--danger); font-size: 12px; font-weight: 600; }
    .dash-mini-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: qr-spin .8s linear infinite; vertical-align: middle; }
    .dash-skel-card { min-height: 88px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: dash-shimmer 1.2s ease-in-out infinite; }
    .dash-skel-line { height: 12px; border-radius: 6px; margin: 8px 0; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: dash-shimmer 1.2s ease-in-out infinite; }
    .dash-skel-line.w60 { width: 60%; }
    .dash-skel-line.w40 { width: 40%; }
    @keyframes dash-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    .dash-output-line { font-size: 13px; padding: 6px 0; color: var(--text); }
    .dash-output-line strong { font-weight: 600; }
    .dash-attention-list { display: flex; flex-direction: column; gap: 0; }
    .dash-attention-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .dash-attention-item:last-child { border-bottom: none; }
    .dash-attention-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
    .dash-attention-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
    .dash-attention-main { min-width: 0; flex: 1; }
    .dash-attention-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dash-attention-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dash-attention-err { font-size: 12px; color: var(--danger); margin-top: 4px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dash-attention-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
    .dash-alerts {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin-bottom: 16px;
      padding: 12px 16px;
      background: var(--warn-soft);
      border: 1px solid var(--warn-border, rgba(180, 120, 20, 0.35));
      border-radius: 10px;
    }
    .dash-alerts[hidden] { display: none !important; }
    .dash-alerts-head {
      font-size: 12px;
      font-weight: 700;
      color: var(--warn);
      letter-spacing: 0.02em;
      margin-bottom: 6px;
    }
    .dash-alert-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .dash-alert-item:last-child { border-bottom: none; padding-bottom: 2px; }
    .dash-alert-main { min-width: 0; flex: 1; }
    .dash-alert-title {
      font-size: 13px;
      font-weight: 600;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dash-alert-err {
      font-size: 12px;
      color: var(--danger);
      margin-top: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .dash-alert-actions { flex-shrink: 0; display: flex; gap: 6px; flex-wrap: wrap; }
    .dash-foot-links { margin-top: 4px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
    .dash-foot-links a { color: var(--primary); text-decoration: none; }
    .dash-foot-links a:hover { text-decoration: underline; }
    .clip-text { cursor: help; border-bottom: 1px dotted rgba(0,0,0,.22); }
    .panel { background: var(--card); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 20px; }
    .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
    .panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    th, td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: middle; }
    th { color: var(--muted); font-weight: 600; font-size: 12px; }
    input, textarea, select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; width: 100%; background: var(--surface); color: var(--text); transition: border-color var(--ease), box-shadow var(--ease); }
    input:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
    input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
    input[type=checkbox], input[type=radio] { width: auto; }
    label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
    .form-row { margin-bottom: 12px; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
    .toolbar input, .toolbar select { width: auto; min-width: 120px; }
    .btn {
      border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px;
      font-weight: 550; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), opacity var(--ease);
      line-height: 1.25;
    }
    .btn:disabled { opacity: .45; cursor: not-allowed; }
    .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
    .btn-primary { background: var(--primary); color: #fff; }
    .btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
    .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
    .btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
    .btn-danger { background: var(--danger); color: #fff; padding: 6px 10px; }
    .btn-danger:hover:not(:disabled) { background: #B91C1C; }
    .btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
    .btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); }
    .btn-sm { padding: 5px 10px; font-size: 12px; }
    .hint { color: var(--muted); font-size: 13px; margin: 8px 0; }
    .status-ok { color: var(--success); }
    .status-fail { color: var(--danger); }
    .timeline { list-style: none; padding: 0; margin: 0; }
    .timeline li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; gap: 12px; cursor: pointer; }
    .timeline li:hover { background: var(--surface-2); }
    .timeline time { color: var(--muted); min-width: 140px; font-size: 12px; }
    .account-groups { border: 1px solid var(--border); border-radius: 8px; padding: 12px; max-height: 200px; overflow: auto; }
    .account-group { margin-bottom: 10px; }
    .account-group-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
    .account-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
    .preview-box { background: var(--surface-2); border-radius: 6px; padding: 8px 12px; font-size: 13px; margin-top: 8px; }
    .modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000; align-items: center; justify-content: center; padding: 16px; }
    .modal-backdrop.open { display: flex; }
    .modal { position: relative; background: var(--card); border-radius: 12px; padding: 24px; width: min(520px, 92vw); max-height: 90vh; overflow: auto; box-shadow: 0 16px 48px rgba(15,23,42,.18); }
    .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .modal-header h3 { margin: 0; flex: 1; min-width: 0; font-size: 18px; line-height: 1.35; }
    .modal-close {
      flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
      width: 32px; height: 32px; padding: 0; margin: -4px -4px 0 0;
      border: none; border-radius: 8px; background: transparent; color: var(--muted);
      cursor: pointer; transition: background var(--ease), color var(--ease);
    }
    .modal-close:hover { background: var(--surface-3); color: var(--text); }
    .modal-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
    .modal-close svg { width: 18px; height: 18px; display: block; pointer-events: none; }
    .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
    .drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 1001; cursor: pointer; }
    .drawer-backdrop.open { display: block; }
    .drawer { position: fixed; top: 0; right: -560px; width: min(560px, 100vw); height: 100vh; background: var(--card); box-shadow: -4px 0 24px rgba(0,0,0,.12); z-index: 1002; transition: right .25s; overflow: auto; padding: 16px 24px 24px; }
    .drawer.open { right: 0; }
    .drawer-header { display: flex; justify-content: flex-end; margin-bottom: 8px; position: sticky; top: 0; z-index: 1; background: var(--card); padding-top: 4px; }
    .drawer pre { background: #1e1e1e; color: #d4d4d4; padding: 12px; border-radius: 8px; font-size: 11px; overflow: auto; max-height: 300px; white-space: pre-wrap; word-break: break-all; }
    .alert-bar { background: var(--warn-soft); color: var(--warn); padding: 10px 24px; font-size: 13px; display: none; }
    .alert-bar.show { display: block; }
    .settings-layout { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
    .settings-nav {
      display: flex; gap: 4px; padding: 4px; width: fit-content; max-width: 100%;
      background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border);
    }
    .settings-nav a {
      display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
      color: var(--muted); text-decoration: none; border-radius: 8px;
      font-size: 13.5px; font-weight: 500; line-height: 1.2; white-space: nowrap;
      border: 1px solid transparent;
      transition: background var(--ease), color var(--ease), box-shadow var(--ease), border-color var(--ease);
    }
    .settings-nav a svg { width: 15px; height: 15px; flex-shrink: 0; }
    .settings-nav a:hover { background: var(--surface); color: var(--text); }
    .settings-nav a.active {
      background: var(--surface); color: var(--text); font-weight: 600;
      box-shadow: var(--shadow-sm); border-color: var(--border);
    }
    .settings-body { min-width: 0; }
    .settings-pane { animation: st-pane-in .18s ease; }
    @keyframes st-pane-in {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: none; }
    }
    .st-lead {
      margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--muted);
    }
    .st-card {
      background: var(--card); border: 1px solid var(--border); border-radius: 12px;
      box-shadow: var(--shadow-sm); padding: 4px 0; margin: 0 0 14px; overflow: hidden;
    }
    .st-card-title {
      margin: 0; font-size: 13px; font-weight: 650; letter-spacing: -.01em; color: var(--text);
    }
    .st-card > .st-card-title,
    .st-card-head {
      padding: 14px 18px 8px;
    }
    .st-card-head {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    }
    .st-card-desc {
      margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted);
    }
    .st-card > .st-card-desc { padding: 0 18px 10px; }
    .st-row {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      margin: 0; padding: 14px 18px; cursor: pointer; user-select: none;
      border-top: 1px solid var(--border);
    }
    .st-row:first-of-type { border-top: 1px solid var(--border); }
    .st-card > .st-card-title + .st-row,
    .st-card > .st-card-head + .st-row { border-top: 1px solid var(--border); }
    .st-row-flush { margin-top: 4px; }
    .st-row-copy {
      display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1;
    }
    .st-row-copy strong {
      font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35;
    }
    .st-row-copy span, .st-row-copy .hint {
      font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 0;
    }
    .st-switch { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; cursor: pointer; }
    .st-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
    .st-switch-track, .settings-switch-track {
      width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong);
      position: relative; display: block; transition: background .15s ease;
    }
    .st-switch-thumb, .settings-switch-thumb {
      position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
      background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.2); transition: left .15s ease;
    }
    .st-switch input:checked + .st-switch-track,
    .st-switch input:checked + .settings-switch-track,
    .settings-switch input:checked + .st-switch-track,
    .settings-switch input:checked + .settings-switch-track { background: var(--primary); }
    .st-switch input:checked + .st-switch-track .st-switch-thumb,
    .st-switch input:checked + .st-switch-track .settings-switch-thumb,
    .st-switch input:checked + .settings-switch-track .st-switch-thumb,
    .settings-switch input:checked + .st-switch-track .st-switch-thumb,
    .settings-switch input:checked + .settings-switch-track .settings-switch-thumb { left: 20px; }
    .st-switch.disabled, .settings-switch.disabled { opacity: .45; pointer-events: none; cursor: default; }
    .net-proxy-fields.is-disabled { opacity: .45; pointer-events: none; }
    .net-proxy-port-chip {
      border: 1px solid var(--border); background: var(--surface, #fff); color: var(--text);
      border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer;
    }
    .net-proxy-port-chip:hover { border-color: var(--primary); color: var(--primary); }
    #netProxyStatus.is-ok { color: #15803d; }
    #netProxyStatus.is-bad { color: #b91c1c; }
    #netProxyStatus.is-muted { color: var(--muted); }
    .st-row.muted { opacity: .55; }
    .st-row.on { background: var(--success-soft); }
    .st-badge {
      display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
      font-size: 11px; font-weight: 650; letter-spacing: .01em;
      background: var(--surface-3); color: var(--muted); line-height: 1.3;
    }
    #licenseStatusCard[data-state="ok"] .st-badge { background: var(--success-soft); color: var(--success); }
    #licenseStatusCard[data-state="trial"] .st-badge { background: var(--primary-soft); color: var(--primary); }
    #licenseStatusCard[data-state="expired"] .st-badge,
    #licenseStatusCard[data-state="need"] .st-badge { background: var(--warn-soft); color: var(--warn); }
    #licenseStatusCard[data-state="dev"] .st-badge { background: var(--primary-soft); color: var(--primary); }
    .st-license-hint { margin: 0; padding: 4px 18px 12px; font-size: 13px; line-height: 1.5; color: var(--text); }
    .st-license-meta { margin: 0; padding: 0 18px 12px; font-size: 12.5px; color: var(--muted); white-space: pre-line; }
    .st-license-form { padding: 0 18px 16px; border-top: 1px dashed var(--border); padding-top: 14px; }
    .st-license-form label { margin-bottom: 6px; }
    .st-license-input-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .st-license-input-row input {
      flex: 1; min-width: 220px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em;
    }
    .license-banner {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
      margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--warn-border, var(--border));
      border-radius: 10px; background: var(--warn-soft, var(--surface-2));
    }
    .license-banner-text { flex: 1; min-width: 0; }
    .license-banner-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
    .license-expired-overlay {
      position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
      background: rgba(15, 23, 42, .45); padding: 24px;
    }
    .license-expired-overlay[hidden] { display: none !important; }
    .license-expired-card {
      width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border);
      border-radius: 14px; padding: 22px 20px; box-shadow: 0 16px 40px rgba(0,0,0,.18);
    }
    .license-expired-card h3 { margin: 0 0 8px; font-size: 18px; }
    .license-expired-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; font-size: 14px; }
    .st-choice-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
      padding: 6px 18px 16px;
    }
    .st-choice {
      display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
      text-align: left; padding: 14px 14px 13px; min-height: 92px;
      border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
      color: var(--text); cursor: pointer; font: inherit;
      transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
    }
    .st-choice strong { font-size: 14px; font-weight: 650; }
    .st-choice span { font-size: 12px; line-height: 1.45; color: var(--muted); }
    .st-choice:hover { border-color: var(--border-strong); background: var(--surface-2); }
    .st-choice.active {
      border-color: var(--primary); background: var(--primary-soft);
      box-shadow: 0 0 0 1px var(--primary) inset;
    }
    .st-choice.active span { color: var(--text); }
    .st-llm-status { display: block; padding: 2px 18px 0; font-size: 14px; font-weight: 650; color: var(--text); }
    #settings-llm .ai-cap-card {
      padding: 0;
    }
    #settings-llm .ai-cap-card .ai-cap-desc { display: none; }
    #settings-llm .ai-order-list { padding: 4px 12px 12px; }
    #settings-llm .llm-panel-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
    #settings-llm .llm-cloud-actions { margin-top: 12px; }
    #settings-llm #llmCloudSecretNote { margin: 8px 0 0; color: var(--muted); }
    #settings-llm #llmCloudPanel.is-inactive {
      opacity: 0.72;
    }
    #settings-llm #llmModeCard .st-choice-grid { margin-top: 4px; }
    #settings-llm .ai-failover-row {
      margin: 0; padding: 14px 18px; border-top: 1px solid var(--border); background: transparent;
    }
    #settings-llm .ai-failover-row.on { background: var(--success-soft); }
    #settings-llm .ai-summary { margin: 0 0 14px; }
    @media (max-width: 640px) {
      .st-choice-grid { grid-template-columns: 1fr; }
      .st-choice { min-height: 0; }
      .st-license-input-row { flex-direction: column; align-items: stretch; }
      .st-license-input-row input { min-width: 0; }
    }
    .btn-xs { padding: 4px 8px; font-size: 12px; border-radius: 6px; }
    .ai-page-head { margin-bottom: 16px; }
    .ai-page-head h2 { margin: 0 0 6px; font-size: 18px; }
    .ai-summary {
      margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2);
      border: 1px solid var(--border); font-size: 13px; color: var(--text); line-height: 1.45;
    }
    .ai-cap-card {
      background: var(--card); border: 1px solid var(--border); border-radius: 12px;
      box-shadow: var(--shadow-sm); overflow: hidden;
    }
    #llmExtraCard[hidden] { display: none !important; }
    .ai-cap-head {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
      padding: 16px 18px 12px; flex-wrap: wrap;
    }
    .ai-cap-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
    .ai-cap-desc { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
    .ai-cap-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .ai-order-list { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
    .ai-order-empty { margin: 0 12px 16px; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }
    .hint-compact { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
    .ai-order-item {
      display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border);
      border-radius: 10px; background: var(--surface-2);
    }
    .ai-order-item.primary { border-color: var(--primary-border); background: var(--primary-soft); }
    .ai-order-rank {
      flex-shrink: 0; min-width: 42px; text-align: center; font-size: 11px; font-weight: 700;
      color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 4px 8px;
    }
    .ai-order-rank.primary { color: var(--primary); background: var(--primary-soft); }
    .ai-order-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .ai-order-body strong { font-size: 14px; }
    .ai-order-meta { font-size: 12px; color: var(--muted); }
    .ai-order-meta.ready { color: var(--success); }
    .ai-order-meta.warn { color: var(--warn); }
    .ai-order-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
    .ai-failover-row {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2);
    }
    .ai-failover-row[hidden] { display: none !important; }
    .ai-failover-row.muted { opacity: .55; }
    .ai-failover-row.on { background: var(--success-soft); }
    .ai-failover-row strong { display: block; font-size: 13px; margin-bottom: 2px; }
    .settings-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
    .settings-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
    .settings-switch-track {
      width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong);
      position: relative; transition: background .15s;
    }
    .settings-switch-thumb {
      position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
      background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s;
    }
    .settings-switch input:checked + .settings-switch-track { background: var(--primary); }
    .settings-switch input:checked + .settings-switch-track .settings-switch-thumb { left: 20px; }
    .settings-switch.disabled { opacity: .45; pointer-events: none; }
    .ai-adv-fold { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); margin-top: 4px; }
    .ai-adv-fold summary {
      padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none;
    }
    .ai-adv-fold summary::-webkit-details-marker { display: none; }
    .ai-adv-fold[open] summary { border-bottom: 1px solid var(--border); }
    .ai-adv-body { padding: 12px; }
    .ai-editor-hint { margin-top: 0; }
    .ec-modules { display: flex; flex-direction: column; gap: 16px; }
    .ec-module { background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
    .ec-module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
    .ec-module-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
    .ec-module-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
    .ec-module-desc { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
    .ec-module-body { padding: 14px 18px 18px; display: grid; gap: 12px; }
    .ec-module-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; }
    .ec-module-row > .ec-field { flex: 1; min-width: 200px; }
    .ec-field label.chk { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 13px; margin: 0; cursor: pointer; }
    .ec-field label.chk input { margin-top: 2px; }
    .ec-field-hint { font-size: 12px; color: var(--muted); margin: 4px 0 0 24px; line-height: 1.45; }
    .ec-field-hint-flush { margin-left: 0; }
    .ec-field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 720px) { .ec-field-2col { grid-template-columns: 1fr; } }
    .ec-choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
    .ec-choice {
      display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
      position: relative;
      padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
      background: var(--surface); cursor: pointer; min-width: 0; min-height: 36px;
    }
    .ec-choice:hover { border-color: var(--accent, #3b82f6); }
    .ec-choice.is-on { border-color: var(--accent, #3b82f6); background: color-mix(in srgb, var(--accent, #3b82f6) 10%, var(--surface)); }
    .ec-choice input { position: absolute; opacity: 0; pointer-events: none; }
    .ec-choice-label { font-size: 13px; font-weight: 550; color: var(--text); white-space: nowrap; }
    .ec-choice-hint { display: none !important; }
    .ec-choice-chips .ec-choice,
    .ec-choice-compact .ec-choice { min-width: 0; padding: 7px 14px; }
    .ec-prompt-box-sm { min-height: 72px; }
    .ec-extra-field {
      margin-top: 4px;
      padding: 14px 14px 12px;
      border-radius: 10px;
      border: 1px solid color-mix(in srgb, var(--accent, #3b82f6) 28%, var(--border));
      background: color-mix(in srgb, var(--accent, #3b82f6) 5%, var(--surface));
    }
    .ec-extra-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
    }
    .ec-extra-head label { margin: 0; font-weight: 600; }
    .ec-extra-badge {
      font-size: 11px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 999px;
      background: var(--surface-3);
      color: var(--muted);
    }
    .ec-extra-badge.is-filled {
      background: var(--primary-soft, #e0e7ff);
      color: var(--primary, #3730a3);
    }
    .ec-warn {
      margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45;
      background: color-mix(in srgb, #f59e0b 14%, var(--surface)); color: var(--text);
    }
    .ec-kv-value.muted { color: var(--muted); font-weight: 400; }
    .ec-prompt-box { width: 100%; min-height: 200px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.5; resize: vertical; }
    .ec-burn-controls { display: grid; gap: 12px; min-width: 0; }
    .ec-prompt-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
    .ec-prompt-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); }
    .ec-prompt-badge.custom { background: var(--warn-soft); color: var(--warn); }
    .ec-prompt-fold { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
    .ec-prompt-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); list-style: none; }
    .ec-prompt-fold summary::-webkit-details-marker { display: none; }
    .ec-prompt-fold summary::before { content: '▸'; margin-right: 8px; color: var(--muted); transition: transform .15s; }
    .ec-prompt-fold[open] summary::before { transform: rotate(90deg); }
    .ec-prompt-fold-body { padding: 0 12px 12px; border-top: 1px solid var(--border); background: #fff; }
    .ec-subsection { padding-top: 4px; }
    .ec-subsection-title { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
    .ec-subsection-divider { border: none; border-top: 1px dashed var(--border); margin: 14px 0; }
    .ec-module-foot { padding: 0 18px 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .ec-module-head-actions { flex-shrink: 0; }
    .ec-config-view { display: grid; gap: 0; }
    .ec-kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--surface-3); font-size: 13px; }
    .ec-kv-row:last-child { border-bottom: none; }
    .ec-kv-label { color: var(--muted); flex-shrink: 0; }
    .ec-kv-value { text-align: right; color: var(--text); font-weight: 500; }

    .ec-kv-icon { display: inline-flex; align-items: center; gap: 8px; }
    .ec-mask-icon-thumb { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); }
    .ec-mask-icon-block { margin-top: 12px; }
    .ec-mask-icon-block.is-disabled { opacity: 0.45; pointer-events: none; }
    .ec-mask-icon-card {
      display: flex; align-items: center; gap: 14px;
      padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
      background: var(--surface-2, rgba(0,0,0,.02));
    }
    .ec-mask-icon-preview {
      width: 56px; height: 56px; object-fit: contain; border-radius: 10px;
      border: 1px solid var(--border); background: #fff; flex-shrink: 0;
    }
    .ec-mask-icon-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
    .ec-mask-icon-title { font-size: 13px; font-weight: 600; color: var(--text); }
    .ec-mask-icon-status { font-size: 12px; color: var(--muted); margin-top: -2px; }
    .ec-mask-icon-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .ec-mask-icon-hint { margin: 0 !important; }
    .ec-inline-field { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
    .ec-inline-field .input { max-width: 88px; }
    .ec-inline-unit { font-size: 13px; color: var(--muted); }
    .ec-val-on { color: var(--success); font-weight: 600; }
    .ec-val-off { color: var(--muted); font-weight: 600; }
    .ec-config-edit[hidden] { display: none !important; }
    .ec-config-view[hidden] { display: none !important; }
    .ec-module-foot[hidden] { display: none !important; }
    [data-ec-edit][hidden] { display: none !important; }
    .ec-doc-card { border: none; background: var(--surface-3); border-radius: 8px; margin-top: 12px; overflow: hidden; }
    .ec-doc-card summary { list-style: none; cursor: pointer; padding: 14px 16px; }
    .ec-doc-card summary::-webkit-details-marker { display: none; }
    .ec-doc-card-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 6px; }
    .ec-doc-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
    .ec-doc-card-meta { font-size: 13px; color: var(--muted); font-weight: 400; }
    .ec-doc-card-preview { margin: 0; font-size: 13px; color: #9ca3af; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ec-doc-card-body { padding: 0 16px 14px; }
    .ec-doc-full { margin: 0; padding: 12px 14px; background: #fff; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.55; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #374151; }
    .ec-doc-card-edit { background: var(--surface-3); border-radius: 8px; padding: 14px 16px; margin-top: 12px; }
    .ec-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.06); }
    .ec-burn-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
    @media (max-width: 720px) { .ec-burn-layout { grid-template-columns: 1fr; } }
    .ec-phone-preview {
      width: 100%;
      max-width: 168px;
      height: 168px;
      border-radius: 18px;
      position: relative;
      flex-shrink: 0;
      margin: 4px auto 0;
      overflow: hidden;
      border: 1px solid #c5cdd8;
      background:
        linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 28%),
        linear-gradient(155deg, #e8f1ff 0%, #f7e9f4 48%, #fff1df 100%);
      box-shadow: 0 8px 18px rgba(15, 23, 42, .08), inset 0 0 0 1px rgba(255,255,255,.55);
    }
    .ec-phone-preview.is-off { opacity: .55; }
    .ec-phone-chrome {
      height: 18px;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding-bottom: 2px;
    }
    .ec-phone-notch {
      width: 42px;
      height: 6px;
      border-radius: 999px;
      background: rgba(15, 23, 42, .18);
    }
    .ec-phone-stage {
      position: absolute;
      inset: 22px 10px 12px;
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.25), transparent 40%),
        linear-gradient(160deg, #cbd5e1 0%, #94a3b8 100%);
      overflow: hidden;
    }
    .ec-phone-stage-hint {
      position: absolute;
      left: 0; right: 0; bottom: 14px;
      text-align: center;
      font-size: 10px;
      color: rgba(255,255,255,.78);
      letter-spacing: .04em;
    }
    .ec-phone-title {
      position: absolute;
      top: 10%;
      left: 8%;
      right: 8%;
      min-height: 28px;
      padding: 6px 8px;
      background: rgba(255,255,255,.94);
      color: #1f2937;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.25;
      box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    }
    .ec-phone-dlg { position: absolute; bottom: 12%; left: 8%; right: 8%; height: 14%; background: rgba(0,0,0,.45); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; }
    .ec-phone-dlg.ec-phone-dlg-smart { box-shadow: 0 0 0 2px rgba(96,165,250,.55); background: rgba(0,0,0,.62); }
    .ec-advanced-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; }
    .collapse-head { cursor: pointer; user-select: none; }
    .collapse-body { display: none; margin-top: 12px; }
    .collapse-body.open { display: block; }
    .crawl-topbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 14px 16px; background: var(--surface-2); border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
    .crawl-stat { color: var(--muted); font-size: 12px; }
    .crawl-running { color: var(--warn); font-weight: 600; }
    .crawl-submeta { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
    .crawl-banner { display: flex; align-items: center; gap: 10px; background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; border: 1px solid var(--warn-border); }
    .crawl-banner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex-shrink: 0; animation: crawl-pulse 1.4s ease-in-out infinite; }
    .dl-health-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
    .dl-health-bar .dl-health-text { color: var(--text); }
    .dl-health-bar .dl-health-muted { color: var(--muted); }
    .dl-health-bar .dl-health-fail { color: var(--danger); font-weight: 600; }
    .dl-health-bar .dl-health-miss { color: var(--warn); font-weight: 600; }
    .dl-health-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .dl-problem-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
    .dl-problem-tab { border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 7px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
    .dl-problem-tab:hover { border-color: var(--primary-border); color: var(--text); }
    .dl-problem-tab.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
    .dl-problem-pane[hidden] { display: none !important; }
    .notes-backup-wrap { position: relative; margin-left: auto; }
    .notes-migrate-summary { margin: 0 18px 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--success-border); background: var(--success-soft); font-size: 13px; line-height: 1.55; }
    .notes-migrate-summary[hidden] { display: none !important; }
    .notes-migrate-summary .nis-title { font-weight: 600; margin-bottom: 4px; }
    .notes-migrate-summary .nis-meta { color: var(--success); font-size: 12px; word-break: break-all; }
    .notes-migrate-summary .nis-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
    .notes-backup-hint { display: block; padding: 6px 12px 8px; font-size: 11px; color: var(--muted); line-height: 1.4; border-top: 1px solid var(--border); margin-top: 2px; }
    .notes-file-pick {
      display: block; border: 1px dashed var(--border-strong); border-radius: 10px; padding: 18px 16px;
      text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
    }
    .notes-file-pick:hover, .notes-file-pick.dragover { border-color: var(--primary); background: var(--primary-soft); }
    .notes-file-pick.has-file {
      border-style: solid; border-color: var(--success-border); background: var(--success-soft);
    }
    .notes-file-pick.has-file:hover, .notes-file-pick.has-file.dragover {
      border-color: var(--primary); background: var(--primary-soft);
    }
    .notes-file-pick .pick-title { font-size: 14px; font-weight: 600; color: var(--text); }
    .notes-file-pick .pick-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
    .notes-file-pick .pick-name { margin-top: 8px; font-size: 13px; color: var(--primary); word-break: break-all; font-weight: 500; }
    .notes-file-pick .pick-empty[hidden], .notes-file-pick .pick-ready[hidden] { display: none !important; }
    .notes-file-pick input[type=file] { display: none; }
    .notes-file-pick.is-busy { pointer-events: none; opacity: 0.72; cursor: default; }
    .notes-io-result { margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--success-soft); border: 1px solid var(--success-border); font-size: 13px; line-height: 1.5; }
    .notes-io-result[hidden] { display: none !important; }
    .notes-io-result .io-title { font-weight: 600; margin-bottom: 4px; }
    .notes-io-result .io-meta { color: var(--success); font-size: 12px; word-break: break-all; margin-top: 4px; }
    .notes-io-result .io-hint { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.45; }
    .notes-io-result .io-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
    .notes-io-hint-list { margin: 0 0 14px; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.55; }
    .notes-io-progress {
      margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--surface-2);
      border: 1px solid var(--border);
    }
    .notes-io-progress[hidden] { display: none !important; }
    .notes-io-progress-line {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      margin-bottom: 8px; font-size: 13px; font-weight: 600;
    }
    .notes-io-progress-line span:last-child { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
    .notes-io-progress .verify-progress-bar { margin-bottom: 6px; }
    .notes-io-progress-hint { margin: 0; }
    .notes-import-warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); border: 1px solid var(--danger-border); color: var(--danger); font-size: 12px; line-height: 1.45; }
    .notes-import-warn[hidden] { display: none !important; }

    .notes-panel { padding: 0; overflow: hidden; }
    .notes-overview { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--border); background: #fff; }
    .notes-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; width: 100%; }
    .notes-stat-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 12px; cursor: pointer; color: var(--text); text-align: left; min-width: 0; transition: border-color .15s, box-shadow .15s; }
    .notes-stat-chip:hover { border-color: var(--primary-border); box-shadow: 0 2px 8px rgba(37,99,235,.08); }
    .notes-stat-chip.active { background: var(--primary-soft); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
    .notes-stat-chip .label { font-size: 11px; color: var(--muted); line-height: 1.2; }
    .notes-stat-chip .n { font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--primary); }
    .notes-stat-chip.fail .n { color: var(--danger); }
    .notes-stat-chip.active .label { color: var(--primary); }
    .notes-ops {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
      margin: 12px 18px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
      background: var(--surface-2); font-size: 13px;
    }
    .notes-ops.is-active, .notes-ops.is-busy { background: var(--primary-soft); border-color: var(--primary-border); }
    .notes-ops .ops-main { min-width: 0; flex: 1; }
    .notes-ops .ops-title { font-weight: 600; color: var(--text); }
    .notes-ops .ops-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
    .notes-ops .ops-warn { color: var(--warn); font-size: 12px; margin-top: 4px; }
    .notes-ops .ops-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
    .notes-ops .ops-progress { margin-top: 8px; max-width: 420px; }
    .notes-ops .ops-progress .verify-progress-bar { margin-bottom: 4px; }
    .notes-ops .ops-progress-text { color: var(--muted); font-size: 12px; line-height: 1.4; }
    .notes-ops[hidden] { display: none !important; }
    .notes-list-block { padding: 12px 18px 0; }
    .notes-list-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
    .notes-search-wrap { flex: 1; min-width: 200px; }
    .notes-search-wrap .input { width: 100%; padding: 8px 12px 8px 34px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") no-repeat 10px center; }
    .notes-clear-link { flex-shrink: 0; color: var(--muted); font-size: 12px; }
    .notes-clear-link[hidden] { display: none !important; }
    .notes-io-btns { display: flex; gap: 6px; flex-shrink: 0; }
    .notes-table-shell { border: 1px solid var(--border); border-radius: 10px; overflow: auto; background: #fff; }
    .notes-panel .notes-table-shell .data-table-wrap {
      padding: 0; border: none; border-radius: 0; overflow: visible; min-width: 1120px;
    }
    #notesTable {
      width: 100%; min-width: 1120px; table-layout: fixed;
    }
    #notesTable thead th {
      background: var(--surface-2); vertical-align: middle; padding: 4px 6px; font-weight: 600;
      border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; letter-spacing: 0;
      text-transform: none; white-space: nowrap;
    }
    /* 9 列：标题 + 来源 + 来源账号 + 类型 + 采集/二创/发布 + 创建 + 更新 */
    #notesTable .col-title { width: 22%; }
    #notesTable .col-src { width: 8%; }
    #notesTable .col-creator { width: 11%; }
    #notesTable .col-ntype { width: 8%; }
    #notesTable .col-media { width: 9%; }
    #notesTable .col-erchuang { width: 9%; }
    #notesTable .col-plat { width: 9%; }
    #notesTable .col-created { width: 11%; }
    #notesTable .col-time { width: 13%; }
    #notesTable th.th-menu-col { position: relative; vertical-align: middle; padding: 4px 6px; }
    #notesTable .th-menu { position: relative; min-width: 0; }
    #notesTable .th-menu-btn {
      display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0;
      padding: 6px 8px; border: none; border-radius: 6px; background: transparent;
      color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2;
      cursor: pointer; text-align: left; transition: background var(--ease), color var(--ease);
    }
    #notesTable .col-title .th-menu { display: flex; justify-content: center; }
    #notesTable .col-title .th-menu-btn { justify-content: center; text-align: center; }
    .notes-list-toolbar .notes-toolbar-filter { flex-shrink: 0; }
    .notes-list-toolbar .notes-toolbar-filter .th-menu-btn {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
      background: #fff; color: var(--muted); font-size: 12px; font-weight: 600;
      cursor: pointer;
    }
    .notes-list-toolbar .notes-toolbar-filter.is-active .th-menu-btn,
    .notes-list-toolbar .notes-toolbar-filter.is-open .th-menu-btn {
      color: var(--primary); border-color: var(--primary); background: var(--primary-soft);
    }
    .notes-list-toolbar .notes-toolbar-filter .th-menu-chevron {
      display: inline-flex; width: 12px; height: 12px; color: var(--subtle);
    }
    .notes-list-toolbar .notes-toolbar-filter .th-menu-chevron svg { width: 100%; height: 100%; }
    #notesTable .th-menu-btn:hover,
    #notesTable .th-menu.is-open .th-menu-btn { background: var(--surface-3); color: var(--text); }
    #notesTable .th-menu.is-active .th-menu-btn { color: var(--primary); background: var(--primary-soft); }
    #notesTable .th-menu-chevron {
      flex-shrink: 0; display: inline-flex; width: 12px; height: 12px; color: var(--subtle);
    }
    #notesTable .th-menu-chevron svg { width: 100%; height: 100%; }
    #notesTable .th-menu.is-active .th-menu-chevron,
    #notesTable .th-menu.is-open .th-menu-chevron { color: inherit; }
    #notesTable .th-menu-label {
      flex: 0 1 auto; min-width: 0; max-width: 100%;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    #notesTable .col-media .th-menu-label,
    #notesTable .col-erchuang .th-menu-label { max-width: none; }
    #notesTable .th-menu-chevron { transition: transform var(--ease); }
    #notesTable .th-menu.is-open .th-menu-chevron { transform: rotate(180deg); }
    #notesTable .th-menu-static .th-menu-btn {
      cursor: default; pointer-events: none; padding-left: 8px; padding-right: 8px;
    }
    #notesTable .th-menu-static .th-menu-btn:hover {
      background: transparent; color: var(--muted);
    }
    .th-menu-panel {
      position: fixed; z-index: 1200;
      min-width: 168px; width: max-content; max-width: min(280px, calc(100vw - 16px));
      padding: 6px; border: 1px solid var(--border); border-radius: 8px;
      background: var(--surface); box-shadow: var(--shadow-md);
      color: var(--text);
    }
    .th-menu-panel[hidden] { display: none !important; }
    .th-menu-item {
      display: block; width: 100%; padding: 7px 10px; border: none; border-radius: 6px;
      background: transparent; color: var(--text); font-size: 12px; font-weight: 500;
      text-align: left; cursor: pointer; white-space: nowrap;
    }
    .th-menu-item:hover { background: var(--surface-2); }
    .th-menu-item.is-active {
      background: var(--primary-soft); color: var(--primary); font-weight: 600;
    }
    .th-menu-sep {
      height: 1px; margin: 4px 6px; background: var(--border); border: none;
    }
    #notesTable tbody td { padding: 10px 8px; font-size: 13px; border-bottom: 1px solid var(--bg); }
    #notesTable tbody tr.notes-row { cursor: pointer; }
    #notesTable tbody tr.notes-row:hover { background: var(--primary-soft); }
    #notesTable td.notes-plat-cell { overflow: hidden; }
    #notesTable td.dt-time { font-size: 12px; white-space: nowrap; color: var(--muted); }
    #notesTable td.dt-creator {
      font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    #notesTable .notes-copyable { cursor: copy; }
    .notes-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 2px 14px; }
    .notes-list-foot .dt-pager { padding: 0; margin: 0; flex: 1; justify-content: flex-end; }
    .notes-list-foot .dt-pager .dt-pager-btns { display: flex; gap: 8px; margin-left: auto; }
    .notes-more-filters { margin: 0; }
    .notes-more-filters summary { cursor: pointer; font-size: 12px; color: var(--muted); user-select: none; list-style: none; }
    .notes-more-filters summary::-webkit-details-marker { display: none; }
    .notes-more-filters[open] summary { color: var(--primary); margin-bottom: 8px; }
    .notes-more-filters-grid { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .notes-more-filters-grid input[type=date] { font-size: 12px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border); }
    .notes-hidden-filter { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .note-plat-pills { display: flex; flex-wrap: nowrap; gap: 3px; align-items: center; overflow: hidden; max-width: 100%; }
    .note-plat-pill { font-size: 11px; line-height: 1.2; padding: 2px 5px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); white-space: nowrap; flex-shrink: 0; }
    .note-plat-pill.ok { color: var(--success); background: var(--success-soft); border-color: var(--success-border); }
    .note-plat-pill.fail { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
    .note-plat-pill.pending { color: var(--muted); background: var(--surface-3); }
    .note-plat-pill.muted { color: var(--muted); background: transparent; border-style: dashed; opacity: .75; }
    .ec-reprocess-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
    .ec-reprocess-hint[hidden] { display: none !important; }
    .notes-drawer-section { margin: 16px 0; padding-top: 4px; border-top: 1px solid var(--border); }
    .notes-drawer-section:first-of-type { border-top: none; padding-top: 0; }
    .notes-drawer-section h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--text); }
    .notes-kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; font-size: 12px; margin-bottom: 4px; }
    .notes-kv .k { color: var(--muted); }
    .notes-kv .v { word-break: break-word; }
    .notes-video-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
    .notes-video-tab { border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 7px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
    .notes-video-tab:hover { border-color: var(--primary-border); color: var(--text); }
    .notes-video-tab.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
    .notes-video-tab:disabled { opacity: .45; cursor: not-allowed; }
    .notes-video { width: 100%; max-height: 360px; background: #111; border-radius: 10px; display: block; }
    .notes-video-empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 12px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px; }
    .notes-download-summary {
      display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
      margin-bottom: 14px; padding: 10px 14px;
      background: var(--card); border: 1px solid var(--border); border-radius: 10px;
      font-size: 12.5px; color: var(--muted); line-height: 1.45;
    }
    .notes-download-summary[hidden] { display: none !important; }
    .notes-download-summary .sum-strong { color: var(--text); font-weight: 600; }
    .notes-download-summary .sum-danger { color: var(--danger); font-weight: 600; }
    .notes-download-summary .sum-warn { color: var(--warn); font-weight: 600; }
    .notes-download-summary .sum-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
    .dl-fail-panel { display: none; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
    .dl-fail-panel.open { display: block; }
    .dl-fail-panel h4 { margin: 0 0 10px; font-size: 14px; }
    .dl-fail-panel .dl-problem-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
    .dl-fail-panel .dl-problem-head h4 { margin: 0; }
    .dl-fail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .dl-fail-table th, .dl-fail-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
    .dl-fail-table th { color: var(--muted); font-weight: 600; }
    @keyframes crawl-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }
    .seg-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--card); padding: 4px; border-radius: 10px; width: fit-content; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
    .seg-tab { border: none; background: transparent; padding: 8px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--muted); }
    .seg-tab.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
    .url-cell { word-break: break-all; white-space: normal; line-height: 1.45; font-size: 12px; }
    .crawl-profile-list-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); }
    .crawl-url-list { display: flex; flex-direction: column; }
    .crawl-toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .crawl-toolbar-left { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 auto; min-width: 0; }
    .crawl-toolbar-right { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; flex: 0 0 auto; margin-left: auto; }
    .crawl-toolbar-left .acct-schedule-inline { flex-shrink: 1; min-width: 0; }
    .crawl-toolbar-right .btn,
    .crawl-toolbar-right .more-menu-wrap { flex: 0 0 auto; }
    #btnCrawlMore { width: 32px; padding-left: 0; padding-right: 0; }
    .crawl-url-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
    .crawl-url-item .url-main { flex: 1; min-width: 0; }
    #crawlGlobalBanner { margin-bottom: 12px; display: none; }
    #crawlGlobalBanner.show { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .progress-health-slow { color: var(--warn); font-size: 12px; }
    .progress-health-stale { color: var(--danger); font-size: 12px; font-weight: 600; }
    .progress-timeline { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12px; max-height: 220px; overflow: auto; }
    .progress-timeline li { padding: 6px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 8px; }
    .progress-timeline li time { color: var(--muted); white-space: nowrap; min-width: 64px; }
    .progress-timeline li span { flex: 1; }
    .video-task-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: var(--surface-2); }
    .video-task-card.running { background: var(--warn-soft); border-color: var(--warn-border); }
    .video-task-card.success { background: var(--success-soft); border-color: var(--success-border); }
    .video-task-card.failed { background: var(--danger-soft); border-color: var(--danger-border); }
    .video-task-title { font-weight: 600; font-size: 14px; margin: 0 0 6px; }
    .video-task-meta { font-size: 13px; color: var(--muted); }
    .crawl-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
    .crawl-pager-btns { display: flex; gap: 6px; }
    .more-menu-wrap { position: relative; }
    .more-menu-pop { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 120px; padding: 4px; }
    .more-menu-pop.open { display: block; }
    .more-menu-pop button { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 8px 12px; font-size: 13px; cursor: pointer; border-radius: 6px; }
    .more-menu-pop button:hover { background: var(--surface-3); }
    .verify-item { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; word-break: break-all; }
    .verify-item:last-child { border-bottom: none; }
    .verify-ok { color: var(--success); }
    .verify-warn { color: var(--warn); }
    .verify-err { color: var(--danger); }
    .verify-skip { color: var(--muted); }
    .verify-progress-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
    .verify-progress-stats { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
    .verify-progress-bar { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
    .verify-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--plat-tencent), #42a5f5); border-radius: 999px; transition: width .25s ease; }
    .verify-progress-current { margin: 0; word-break: break-all; font-size: 12px; }
    .verify-results-scroll { max-height: 240px; overflow: auto; margin-top: 4px; }
    .profile-add-modal {
      width: min(680px, 94vw);
      max-height: min(680px, 88vh);
      padding: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .profile-add-modal .modal-header { padding: 20px 20px 0; margin-bottom: 0; flex-shrink: 0; }
    .profile-add-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 20px 0; overflow: hidden; }
    .profile-add-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
    .profile-add-pane[hidden] { display: none !important; }
    .profile-add-pane-input textarea {
      width: 100%; min-height: 112px; max-height: 168px; resize: vertical;
      border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.45;
    }
    .profile-add-pane-input .batch-preview { margin: 0; flex-shrink: 0; }
    .profile-add-pane-flow { gap: 8px; }
    .profile-add-progress {
      flex-shrink: 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border);
      border-radius: 8px; display: none;
    }
    .profile-add-progress.show { display: block; }
    .profile-add-progress-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
    .profile-add-progress-line span:last-child { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
    .profile-add-progress .verify-progress-bar { margin-bottom: 6px; }
    .profile-add-progress .verify-progress-current { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .profile-flow-list {
      flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: 10px;
      background: #fff; overscroll-behavior: contain;
    }
    .profile-flow-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; align-items: start; }
    .profile-flow-row:last-child { border-bottom: none; }
    .profile-flow-row.active { background: #fffde7; }
    .profile-flow-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
    .profile-flow-badge.duplicate { background: var(--surface-3); color: var(--muted); }
    .profile-flow-badge.invalid { background: var(--danger-soft); color: var(--danger); }
    .profile-flow-badge.pending { background: var(--plat-tencent-soft); color: var(--plat-tencent); }
    .profile-flow-badge.checking { background: var(--warn-soft); color: var(--warn); }
    .profile-flow-badge.ok { background: var(--success-soft); color: var(--success); }
    .profile-flow-badge.warn { background: var(--warn-soft); color: var(--warn); }
    .profile-flow-badge.importing { background: var(--primary-soft); color: var(--primary); }
    .profile-flow-badge.added { background: var(--success-soft); color: var(--success); }
    .profile-flow-badge.failed { background: var(--danger-soft); color: var(--danger); }
    .profile-flow-url { grid-column: 2; word-break: break-all; font-weight: 500; line-height: 1.4; }
    .profile-flow-msg { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.45; }
    .profile-add-footer {
      flex-shrink: 0; margin-top: 0; padding: 12px 16px 16px; border-top: 1px solid var(--border);
      background: var(--surface-2); border-radius: 0 0 12px 12px;
    }
    .form-row-time .form-row-field { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
    .form-row-time .hint-compact { margin: 0; font-size: 12px; line-height: 1.45; }
    .dt-time-wrap { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
    .dt-time-btn {
      display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
      border: 1px solid var(--border); background: #fff; color: var(--text);
      font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
      padding: 8px 12px; border-radius: 8px; cursor: pointer; min-width: 108px;
      transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
    }
    .dt-time-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--surface-2); color: var(--primary); }
    .dt-time-btn.open { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); color: var(--primary); }
    .dt-time-btn:disabled { opacity: .48; cursor: not-allowed; background: var(--surface-2); }
    .dt-time-btn-value { flex: 1; text-align: left; }
    .dt-time-btn-icon { width: 14px; height: 14px; opacity: .5; flex-shrink: 0; transition: transform .15s; }
    .dt-time-btn.open .dt-time-btn-icon { transform: rotate(180deg); opacity: .75; }
    .acct-schedule-inline .dt-time-btn { min-width: 80px; padding: 4px 10px; font-size: 13px; border-color: rgba(37,99,235,.22); color: var(--primary); background: #fff; }
    .acct-schedule-inline .dt-time-btn:hover:not(:disabled) { background: var(--plat-tencent-soft); border-color: rgba(37,99,235,.35); }
    .acct-schedule-inline.disabled .dt-time-btn { opacity: 0.45; pointer-events: none; cursor: default; background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; }
    .dt-time-panel {
      position: fixed; z-index: 10050; display: none;
      background: var(--card); border: 1px solid var(--border); border-radius: 12px;
      box-shadow: 0 16px 40px rgba(15,23,42,.16); width: 240px; overflow: hidden;
    }
    .dt-time-panel.open { display: block; }
    .dt-time-panel-head { padding: 10px 14px 8px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
    .dt-time-panel-body { display: flex; align-items: stretch; gap: 2px; padding: 10px 12px; background: var(--surface-2); overscroll-behavior: contain; }
    .dt-time-col {
      flex: 1; max-height: 216px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px;
      background: #fff; scrollbar-width: thin; overscroll-behavior: contain; touch-action: pan-y;
      -webkit-overflow-scrolling: touch;
    }
    .dt-time-col-item {
      display: block; width: 100%; border: none; background: transparent;
      padding: 7px 0; font-size: 14px; font-variant-numeric: tabular-nums;
      cursor: pointer; text-align: center; color: var(--text); transition: background .12s, color .12s;
    }
    .dt-time-col-item:hover { background: var(--surface-3); }
    .dt-time-col-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
    .dt-time-sep { display: flex; align-items: center; font-weight: 700; color: var(--muted); padding: 0 2px; font-size: 16px; }
    .dt-time-panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--border); }
    .dt-time-panel-foot .btn { min-width: 64px; }
    .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: var(--plat-tencent-soft); color: var(--plat-tencent); white-space: nowrap; }
    .tag.video { background: var(--plat-douyin-soft); color: var(--plat-douyin); }
    .batch-preview { background: var(--surface-2); border-radius: 6px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
    .publish-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--card); padding: 4px; border-radius: 10px; width: fit-content; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
    .publish-tab { border: none; background: transparent; padding: 8px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--muted); }
    .publish-tab.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
    .publish-section { display: none; }
    .publish-section.active { display: block; }
    .publish-banner { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; display: none; }
    .platform-picker { display: flex; flex-direction: column; gap: 8px; }
    .platform-row { border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
    .platform-row.active { border-color: var(--primary-border); box-shadow: 0 0 0 1px rgba(37,99,235,.08); }
    .platform-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; min-height: 48px; }
    .platform-row-toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--text); cursor: pointer; }
    .platform-row-toggle input { margin: 0; }
    .platform-row-title { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
    .platform-row-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
    .platform-row:not(.active) .platform-row-title { color: var(--muted); font-weight: 500; }
    .platform-row-config { display: none; padding: 10px 14px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
    .platform-row.active .platform-row-config { display: block; }
    .platform-mode-tabs { margin: 0; }
    .platform-acct-list { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
    .platform-picker-empty { font-size: 12px; color: var(--muted); margin: 0; padding: 8px 0 0; }
    .bluev-pick-hint { margin: 8px 14px 0; }
    .bluev-pick-summary { margin: 8px 0 0; }
    .bluev-session-group {
      margin: 12px 0 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
      background: #fff;
    }
    .bluev-session-group.is-disabled { opacity: .72; }
    .bluev-session-head {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px;
    }
    .bluev-session-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .bluev-session-eyebrow {
      font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: .02em;
    }
    .bluev-session-title strong {
      font-size: 14px; line-height: 1.35;
      overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
      -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }
    .bluev-session-meta { font-size: 12px; color: var(--muted); }
    .bluev-session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
    .bluev-session-stores { display: flex; flex-direction: column; gap: 4px; }
    .bluev-store {
      display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px;
      border-radius: 8px; border: 1px solid transparent; cursor: pointer;
    }
    .bluev-store:hover { background: var(--surface-2); }
    .bluev-store.muted { opacity: .65; cursor: not-allowed; }
    .bluev-store .bluev-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
    .bluev-store-chip {
      font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
      background: var(--surface-3); color: var(--muted); white-space: nowrap;
    }
    .bluev-store-chip.ok { background: var(--success-soft); color: var(--success); }
    .bluev-store-chip.warn { background: var(--warn-soft); color: var(--warn); }
    .bluev-store-chip.bad { background: var(--danger-soft); color: var(--danger); }
    .platform-acct-list.is-all-mode .bluev-store input { pointer-events: none; }
    .platform-acct-list.is-all-mode .bluev-store { cursor: default; }
    .publish-preview { background: var(--primary-soft); color: var(--primary); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 12px 0; }
    .publish-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
    .form-section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 10px; text-transform: uppercase; letter-spacing: .03em; }
    .opt-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
    .platform-time-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin: 8px 0; overflow: visible; }
    .platform-time-panel .form-row { margin-bottom: 8px; }
    .seg-tabs-sm { margin-bottom: 12px; }
    .seg-tabs-sm .seg-tab { padding: 6px 14px; font-size: 12px; }
    .dt-schedule-block { margin-top: 12px; }
    .dt-inline-pickers { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
    .dt-field { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
    .dt-field-label { font-size: 12px; color: var(--muted); font-weight: 500; }
    .dt-date-btn { display: inline-flex; align-items: center; border: 1px solid var(--border); background: #fff; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px; cursor: pointer; min-width: 132px; }
    .dt-date-btn:hover { border-color: var(--primary); background: var(--surface-2); color: var(--primary); }
    .dt-date-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
    .dt-date-wrap { position: relative; display: inline-block; }
    .dt-offset-select { width: auto; min-width: 100px; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
    .dt-field-wide { min-width: 220px; flex: 1 1 240px; }
    .range-schedule-block { display: flex; flex-direction: column; gap: 14px; }
    .range-date-row { margin: 0; }
    .range-times-row { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; border-top: 1px dashed rgba(0,0,0,.06); }
    .range-times-row .dt-field-label { margin: 0; }
    .range-times-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .range-time-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 32px; flex: 1 1 200px; }
    .range-time-chip {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 6px 8px 6px 10px; border-radius: 999px;
      background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600;
      font-variant-numeric: tabular-nums;
    }
    .range-time-chip-remove {
      border: none; background: transparent; color: var(--primary); cursor: pointer;
      font-size: 16px; line-height: 1; padding: 0 2px; opacity: .65;
    }
    .range-time-chip-remove:hover { opacity: 1; }
    .range-time-add-btn {
      border: 1px dashed rgba(37,99,235,.28); background: #fff; color: var(--primary);
      border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
      white-space: nowrap;
    }
    .range-time-add-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--primary); }
    .range-time-add-btn:disabled { opacity: .45; cursor: not-allowed; }
    .data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
    table.data-table { margin: 0; table-layout: fixed; width: 100%; }
    table.data-table thead th { background: var(--surface-2); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; white-space: nowrap; position: sticky; top: 0; z-index: 2; }
    table.data-table tbody td { padding: 10px 12px; font-size: 13px; vertical-align: middle; overflow: hidden; }
    table.data-table tbody tr { height: 44px; }
    table.data-table tbody tr:hover { background: var(--primary-soft); }
    table.data-table tbody tr.row-fail { background: var(--danger-soft); }
    table.data-table tbody tr.row-fail:hover { background: var(--danger-soft); }
    table.data-table tbody tr:last-child td { border-bottom: none; }
    table.data-table .dt-clip,
    table.data-table .dt-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 500; }
    table.data-table .dt-time,
    table.data-table .dt-action,
    table.data-table .dt-num,
    table.data-table .dt-badge,
    table.data-table .dt-status { white-space: nowrap; }
    table.data-table .dt-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
    table.data-table .dt-action { text-align: right; width: 72px; }
    table.data-table th.dt-action-wide,
    table.data-table td.task-actions {
      width: 196px;
      min-width: 196px;
      white-space: nowrap;
      overflow: visible;
    }
    table.data-table .dt-check label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: inherit; white-space: nowrap; }
    table.data-table.publish-tasks-table { min-width: 640px; }
    table.data-table.publish-tasks-table th.col-task-name { width: 11%; min-width: 72px; }
    table.data-table.publish-tasks-table th.col-task-sched { width: 16%; min-width: 108px; }
    table.data-table.publish-tasks-table th.col-task-status { width: 9%; min-width: 72px; }
    table.data-table.publish-tasks-table th.col-task-accounts { width: auto; }
    table.data-table.publish-tasks-table tbody tr { height: auto; min-height: 44px; }
    table.data-table.publish-tasks-table td.col-task-name { overflow: hidden; }
    table.data-table.publish-tasks-table td.col-task-sched { overflow: visible; white-space: normal; }
    table.data-table.publish-tasks-table td.col-task-accounts { white-space: normal; overflow: visible; line-height: 1.45; }
    table.data-table.publish-tasks-table .task-acct-full { display: block; white-space: normal; word-break: break-word; font-size: 12px; }
    table.data-table.publish-tasks-table .task-time-cell { display: block; font-size: 12px; line-height: 1.45; }
    table.data-table.publish-tasks-table .task-time-local { display: block; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
    table.data-table.publish-tasks-table .task-time-pub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; font-variant-numeric: tabular-nums; }
    .dt-muted { color: var(--muted); }
    .dt-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .dt-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
    .dt-pager-meta { font-size: 12px; color: var(--muted); }
    .status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
    .status-pill.ok { background: var(--success-soft); color: var(--success); }
    .status-pill.fail { background: var(--danger-soft); color: var(--danger); }
    .status-pill.pending { background: var(--warn-soft); color: var(--warn); }
    .status-pill.running { background: var(--primary-soft); color: var(--primary); }
    .status-pill.muted { background: var(--surface-3); color: var(--muted); }
    .plat-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--primary-soft); color: var(--primary); }
    .plat-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
    .plat-badge.tencent { background: var(--plat-tencent-soft); color: var(--plat-tencent); }
    .plat-badge.kuaishou { background: var(--plat-kuaishou-soft); color: var(--plat-kuaishou); }
    .plat-badge.douyin { background: var(--plat-douyin-soft); color: var(--plat-douyin); }
    .plat-badge.xhs { background: var(--plat-xhs-soft); color: var(--plat-xhs); }
    .plat-badge.baijiahao { background: var(--plat-baijiahao-soft); color: var(--plat-baijiahao); }
    .plat-badge.bilibili { background: var(--plat-bilibili-soft); color: var(--plat-bilibili); }
    .plat-badge.tiktok { background: var(--plat-tiktok-soft); color: var(--plat-tiktok); }
    .plat-badge.ntype-video { background: #eef6ff; color: #2563eb; }
    .plat-badge.ntype-image { background: #f3e8ff; color: #7c3aed; }
    .plat-badge.ntype-suspect { background: #fff7ed; color: #c2410c; }
    .trig-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; background: var(--surface-3); color: var(--muted); }
    .trig-badge.manual { background: var(--primary-soft); color: var(--primary); }
    .task-actions { display: inline-flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
    .task-actions .btn-sm { flex-shrink: 0; white-space: nowrap; }
    .task-actions .task-del-btn { color: var(--danger); border-color: var(--danger-border, var(--border)); }
    .task-actions .task-del-btn:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
    .dt-empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 13px; }
    .notify-webhook-row { margin-top: 10px; display: none; }
    .notify-webhook-row.show { display: block; }
    .notify-webhook-row input { width: 100%; max-width: 520px; }
    #toast { display: none !important; } /* legacy singleton replaced by #toastStack */
    #toast.error { background: var(--danger); }
    #toast.success { background: var(--success); }
    #toast.info { background: var(--primary); }
    .acct-stat { color: var(--muted); font-size: 12px; }
    .acct-running { color: var(--warn); font-weight: 600; }
    .acct-banner { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; display: none; }
    .acct-banner.show { display: block; }
    .page-loading { padding: 32px 24px; text-align: center; color: var(--muted); font-size: 14px; display: none; }
    .page-loading.show { display: block; }
    .svc-status { display: inline-flex; align-items: center; gap: 6px; }
    .svc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
    .svc-dot.warn { background: var(--warn); }
    .brand-sub {
      display: block; font-size: 10.5px; font-weight: 400; color: rgba(255,255,255,.48);
      margin-top: 5px; margin-left: 37px; line-height: 1.3;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .acct-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
    .acct-hero-card { background: var(--card); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); border-left: 4px solid var(--border); }
    .acct-hero-card.ok { border-left-color: var(--success); }
    .acct-hero-card.bad { border-left-color: var(--danger); }
    .acct-hero-card.unknown { border-left-color: var(--subtle); }
    .acct-hero-card.total { border-left-color: var(--primary); }
    .acct-hero-num { font-size: 32px; font-weight: 700; line-height: 1.1; margin: 6px 0 4px; }
    .acct-hero-label { font-size: 13px; color: var(--muted); }
    .acct-page-head {
      display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
      gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
    }
    .acct-page-head h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; }
    .acct-page-head .acct-page-lead { margin: 0; max-width: 52ch; line-height: 1.55; color: var(--muted); font-size: 13px; }
    .acct-steps {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
      margin: 0 0 18px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border);
    }
    .acct-step { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
    .acct-step-num {
      flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
      font-size: 12px; font-weight: 700; background: var(--primary-soft); color: var(--primary);
    }
    .acct-step strong { display: block; font-size: 13px; margin-bottom: 2px; }
    .acct-step span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
    .acct-empty-cta {
      text-align: center; padding: 36px 20px 28px; border: 1px dashed var(--border-strong);
      border-radius: 14px; background: var(--surface-2);
    }
    .acct-empty-cta h3 { margin: 0 0 8px; font-size: 17px; }
    .acct-empty-cta p { margin: 0 auto 16px; max-width: 42ch; color: var(--muted); font-size: 13px; line-height: 1.55; }
    .ms-group {
      border: 1px solid var(--border); border-radius: 14px; background: var(--card);
      margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
    }
    .ms-group.is-disabled { opacity: .72; }
    .ms-group.is-need-login { border-color: var(--danger-border, #fecaca); }
    .ms-group-head {
      display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
      gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--border);
      background: linear-gradient(180deg, var(--surface-2), transparent);
    }
    .ms-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 650; letter-spacing: .04em; color: var(--muted); text-transform: none; }
    .ms-title { margin: 0; font-size: 17px; font-weight: 650; }
    .ms-meta { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
    .ms-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
    .ms-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
    .ms-sec-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
    .ms-body { padding: 14px 16px 16px; }
    .ms-body-title {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      margin: 0 0 12px; font-size: 13px; font-weight: 600;
    }
    .ms-body-title span { color: var(--muted); font-weight: 400; font-size: 12px; }
    .ms-empty {
      margin: 0; padding: 14px; border-radius: 10px; background: var(--surface-2);
      border: 1px dashed var(--border); color: var(--muted); font-size: 13px; line-height: 1.5;
    }
    @media (max-width: 900px) {
      .acct-steps { grid-template-columns: 1fr; }
      .ms-head-right { align-items: stretch; width: 100%; }
      .ms-actions, .ms-sec-actions { justify-content: flex-start; }
    }
    .acct-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    .acct-toolbar-left, .acct-toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .acct-schedule-inline { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface-3); font-size: 13px; flex-wrap: nowrap; white-space: nowrap; line-height: 1; }
    .acct-schedule-inline.on { background: var(--success-soft); }
    .acct-sched-inline-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; margin: 0; white-space: nowrap; }
    .acct-sched-text { white-space: nowrap; }
    .acct-platform-block { margin-bottom: 40px; padding-bottom: 4px; }
    .acct-platform-block:last-child { margin-bottom: 0; }
    .acct-section-title { font-size: 15px; font-weight: 600; margin: 0 0 14px; padding: 10px 0 10px 2px; border-bottom: 2px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .acct-section-meta { font-size: 12px; font-weight: 400; color: var(--muted); }
    .acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
    .acct-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
    .acct-card.invalid { background: var(--danger-soft); border-color: var(--danger-border); }
    .acct-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .acct-card-name { font-size: 16px; font-weight: 600; margin: 0; }
    .acct-card-platform { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .acct-card-meta { font-size: 12px; color: var(--muted); line-height: 1.5; }
    .acct-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
    .cookie-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
    .cookie-badge.ok { background: var(--success-soft); color: var(--success); }
    .cookie-badge.bad { background: var(--danger-soft); color: var(--danger); }
    .cookie-badge.unknown { background: var(--surface-3); color: var(--muted); }
    .col-warn { color: var(--warn); font-weight: 600; }
    .col-num { text-align: right; font-variant-numeric: tabular-nums; }
    th.col-num, td.col-num { text-align: right; }
    .task-acct-tip { cursor: help; border-bottom: 1px dotted rgba(0,0,0,.22); }
    .crawl-profile-list-head { display: grid; grid-template-columns: minmax(0, 1fr) 96px 88px 96px 36px; gap: 12px 16px; align-items: center; padding: 9px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
    
    .crawl-profile-list-head { text-transform: none; letter-spacing: 0; font-size: 12px; }
    .crawl-profile-list-head .th-menu { justify-self: center; min-width: 0; }
    .crawl-profile-list-head .th-menu-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%;
      padding: 4px 6px; border: none; border-radius: 6px; background: transparent;
      color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2;
      cursor: pointer; text-align: center; transition: background var(--ease), color var(--ease);
    }
    .crawl-profile-list-head .th-menu-btn:hover,
    .crawl-profile-list-head .th-menu.is-open .th-menu-btn { background: var(--surface-3); color: var(--text); }
    .crawl-profile-list-head .th-menu.is-active .th-menu-btn { color: var(--primary); background: var(--primary-soft); }
    .crawl-profile-list-head .th-menu-chevron {
      flex-shrink: 0; display: inline-flex; width: 12px; height: 12px; color: var(--subtle);
      transition: transform var(--ease);
    }
    .crawl-profile-list-head .th-menu-chevron svg { width: 100%; height: 100%; }
    .crawl-profile-list-head .th-menu.is-active .th-menu-chevron,
    .crawl-profile-list-head .th-menu.is-open .th-menu-chevron { color: inherit; }
    .crawl-profile-list-head .th-menu.is-open .th-menu-chevron { transform: rotate(180deg); }
    .crawl-profile-list-head .th-menu-label {
      flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }

.crawl-profile-list-head .crawl-profile-col-status { text-align: center; }
    .crawl-profile-list-head .crawl-profile-col-date { text-align: right; }
    .crawl-profile-item { display: grid; grid-template-columns: minmax(0, 1fr) 96px 88px 96px 36px; gap: 12px 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
    .crawl-profile-item:last-child { border-bottom: none; }
    .crawl-profile-item:hover { background: var(--primary-soft); }
    .crawl-profile-body { min-width: 0; }
    .crawl-profile-handle { display: block; font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .crawl-profile-handle:hover { color: var(--primary); text-decoration: underline; }
    .crawl-profile-meta { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .crawl-profile-meta-empty { color: #9ca3af; font-style: italic; }
    .crawl-profile-status { justify-self: center; }
    .crawl-profile-status-none { color: #d1d5db; font-size: 12px; }
    .crawl-profile-date { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; justify-self: end; }
    .crawl-profile-del { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s, border-color .15s; justify-self: end; }
    .crawl-profile-del svg { width: 16px; height: 16px; }
    .crawl-profile-del:hover { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
    .crawl-profile-empty { text-align: center; padding: 44px 24px 48px; }
    .crawl-profile-empty-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--surface-3), #e5e7eb); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; font-weight: 700; }
    .crawl-profile-empty-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text); }
    .crawl-profile-empty-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
    @media (max-width: 720px) {
      .crawl-profile-list-head { display: none; }
      .crawl-profile-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; }
      .crawl-profile-body { grid-column: 1; grid-row: 1; }
      .crawl-profile-plat { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 2px; }
      .crawl-profile-status { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 2px; }
      .crawl-profile-date { grid-column: 2; grid-row: 1; align-self: start; font-size: 11px; }
      .crawl-profile-del { grid-column: 2; grid-row: 2; justify-self: end; }
    }
    .err-type-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: var(--danger-soft); color: var(--danger); white-space: nowrap; }
    .dash-pipeline-extra { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .acct-health-line { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
    .import-result-item { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
    .add-acct-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--surface-3); padding: 4px; border-radius: 10px; }
    .add-acct-tab { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--muted); font-weight: 500; }
    .add-acct-tab.active { background: var(--card); color: var(--primary); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
    .add-acct-pane { display: none; }
    .add-acct-pane.active { display: block; }
    .scan-platform-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
    .scan-plat-chip { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .15s; }
    .scan-plat-chip:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
    .scan-plat-chip.active { background: var(--plat-tencent-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
    .scan-plat-chip:disabled { opacity: .55; cursor: not-allowed; }
    .scan-modal { width: min(400px, 92vw); padding: 0; overflow: hidden; }
    .scan-modal-header { padding: 20px 20px 0; }
    .scan-modal-header .modal-header { margin-bottom: 0; }
    .scan-modal-header h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.35; }
    .scan-modal-header .scan-modal-account { margin-top: 8px; }
    .scan-modal-header .scan-modal-sub { margin-top: 4px; }
    .scan-modal-body { padding: 16px 20px 20px; }
    .scan-modal-sub { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
    .scan-modal-account { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--primary); }
    .scan-modal-footer { border-top: 1px solid var(--border); padding: 12px 16px 16px; background: var(--surface-2); }
    .scan-modal-footer .btn { width: 100%; padding: 10px 16px; font-size: 14px; font-weight: 500; }
    .scan-modal .add-acct-tabs { margin: 14px 20px 0; }
    .scan-modal .add-acct-pane { padding: 0 20px 20px; }
    .scan-modal .add-acct-pane .scan-modal-sub { margin-bottom: 12px; }
    .scan-modal .add-acct-pane .modal-actions.scan-modal-footer {
      margin: 14px 0 0;
      padding: 14px 0 0;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 8px;
      background: transparent;
    }
    .scan-modal .add-acct-pane .modal-actions.scan-modal-footer .btn { width: auto; flex: 1; }
    .scan-modal .add-acct-pane .modal-actions.scan-modal-footer .btn-primary { flex: 1.4; }
    .qr-login-card {
      background: linear-gradient(180deg, #f5f8fc 0%, #fff 100%);
      border: 1px solid rgba(37,99,235,.12);
      border-radius: 12px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .qr-login-card[data-platform="tencent"] { border-color: rgba(29,78,216,.22); background: linear-gradient(180deg, #eef5fc 0%, #fff 100%); }
    .qr-login-card[data-platform="kuaishou"] { border-color: rgba(234,88,12,.2); background: linear-gradient(180deg, #fff8f0 0%, #fff 100%); }
    .qr-login-card[data-platform="douyin"] { border-color: rgba(219,39,119,.18); background: linear-gradient(180deg, #fdf2f7 0%, #fff 100%); }
    .qr-login-card[data-platform="xhs"] { border-color: rgba(220,38,38,.18); background: linear-gradient(180deg, #fef5f5 0%, #fff 100%); }
    .qr-login-card[data-platform="baijiahao"] { border-color: rgba(5,150,105,.18); background: linear-gradient(180deg, var(--success-soft) 0%, #fff 100%); }
    .qr-login-frame {
      width: 232px;
      height: 232px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      border-radius: 10px;
      border: 1px solid rgba(37,99,235,.10);
      box-shadow: 0 2px 12px rgba(37,99,235,.08);
      position: relative;
      overflow: hidden;
    }
    .qr-login-panel { text-align: center; width: 100%; display: flex; justify-content: center; }
    .qr-login-panel img,
    .qr-login-frame img {
      width: 212px;
      height: 212px;
      object-fit: contain;
      display: block;
      border: none;
      border-radius: 0;
      background: #fff;
      box-shadow: none;
    }
    .qr-login-placeholder {
      width: 100%;
      height: 100%;
      margin: 0;
      border: none;
      border-radius: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 13px;
      background: transparent;
      padding: 16px;
      text-align: center;
      line-height: 1.5;
    }
    .qr-login-hint {
      margin: 0;
      font-size: 13px;
      color: var(--primary);
      line-height: 1.5;
      text-align: center;
      font-weight: 500;
    }
    .qr-login-status { margin: 0; font-size: 12px; color: var(--muted); text-align: center; min-height: 0; }
    .qr-login-loading {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
    }
    .qr-login-loading::before {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid var(--border);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: qr-spin .75s linear infinite;
      flex-shrink: 0;
    }
    @keyframes qr-spin { to { transform: rotate(360deg); } }
    @media (max-width: 900px) { .acct-hero { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 960px) {
      .content { padding: 16px; }
      .panel { padding: 16px; }
      .topbar { padding: 10px 16px; }
      .toolbar { gap: 6px; }
      .toolbar input, .toolbar select { min-width: 96px; }
      .dash-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .cards.cards-dash { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .sidebar { width: 64px; }
      .brand .brand-text, .brand-sub, .nav a .nav-label, .nav-group-label { display: none; }
      .brand { padding: 16px 12px; display: flex; justify-content: center; }
      .brand-mark { justify-content: center; }
      .nav { padding: 10px 8px; }
      .nav-group { margin-bottom: 10px; }
      .nav a { justify-content: center; padding: 10px; }
      .nav a.active::before { left: 2px; }
      .form-grid { grid-template-columns: 1fr; }
      .settings-nav { width: 100%; overflow-x: auto; }
      .panel-head { align-items: flex-start; }
      .publish-tabs, .seg-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
      .publish-tab, .seg-tab { flex-shrink: 0; }
      table.data-table th.dt-action-wide,
      table.data-table td.task-actions { width: 220px; min-width: 220px; }
      .task-actions { gap: 4px; flex-wrap: nowrap; }
      .notes-overview { flex-direction: column; }
      .notes-overview-actions { width: 100%; justify-content: flex-end; }
      .notes-stat-grid { grid-template-columns: repeat(3, 1fr); width: 100%; }
      .notes-search-wrap { max-width: none; }
    }
    @media (max-width: 560px) {
      .content { padding: 12px; }
      .panel { padding: 12px; border-radius: 10px; }
      .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
      .cards.cards-dash { grid-template-columns: 1fr; }
      .card { padding: 14px; }
      .card-value { font-size: 20px; }
      .dash-shortcuts { grid-template-columns: 1fr; }
    }

    /* ---- Ops Quiet Lux enhancements ---- */
    /* card hover in phase d */
    .seg-tabs, .publish-tabs {
      box-shadow: none; border: 1px solid var(--border); background: var(--surface-2);
    }
    .seg-tab, .publish-tab {
      transition: background var(--ease), color var(--ease);
      border-radius: 7px; font-weight: 500;
    }
    .seg-tab:hover, .publish-tab:hover { color: var(--text); background: rgba(255,255,255,.7); }
    .seg-tab.active, .publish-tab.active {
      background: var(--surface); color: var(--text); font-weight: 600;
      box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    }

    .dash-today-bar { box-shadow: none; }
    .dash-runtime-banner, .alert-bar, .crawl-banner, .publish-banner, .acct-banner {
      background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border);
    }
    .dash-pipeline-row {
      border-bottom: none; padding: 10px 12px; margin: 0 0 6px; border-radius: 10px;
      border: 1px solid transparent; transition: background var(--ease), border-color var(--ease);
    }
    .dash-pipeline-row:hover { background: var(--surface-2); margin: 0 0 6px; padding: 10px 12px; border-color: var(--border); }
    .dash-pipeline-main { display: flex; align-items: center; gap: 8px; }
    .plat-dot {
      width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--subtle);
    }
    .plat-dot.tencent { background: var(--plat-tencent); }
    .plat-dot.kuaishou { background: var(--plat-kuaishou); }
    .plat-dot.douyin { background: var(--plat-douyin); }
    .plat-dot.xhs { background: var(--plat-xhs); }
    .plat-dot.baijiahao { background: var(--plat-baijiahao); }
    .plat-dot.bilibili { background: var(--plat-bilibili); }
    .plat-dot.tiktok { background: var(--plat-tiktok); }

    .pipe-track {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
      margin: 0 0 14px; padding: 12px; background: var(--surface-2);
      border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .pipe-step {
      display: flex; flex-direction: column; gap: 2px; min-width: 0;
      padding: 8px 10px; border-radius: 8px; background: var(--surface);
      border: 1px solid var(--border);
    }
    .pipe-step-label { font-size: 11px; color: var(--muted); font-weight: 600; }
    .pipe-step-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -.02em; }
    .pipe-step.is-warn .pipe-step-value { color: var(--warn); }
    .pipe-step.is-danger .pipe-step-value { color: var(--danger); }
    .pipe-step.is-ok .pipe-step-value { color: var(--success); }
    @media (max-width: 720px) { .pipe-track { grid-template-columns: 1fr 1fr; } }

    .status-pill.ok { background: var(--success-soft); color: var(--success); }
    .status-pill.fail { background: var(--danger-soft); color: var(--danger); }
    .status-pill.pending { background: var(--warn-soft); color: var(--warn); }
    .status-pill.muted { background: var(--surface-3); color: var(--muted); }

    .ui-empty {
      text-align: center; padding: 36px 20px; color: var(--muted);
      border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--surface-2);
    }
    .ui-empty-ico {
      width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px;
      background: var(--surface); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center; color: var(--subtle);
    }
    .ui-empty-ico svg { width: 22px; height: 22px; }
    .ui-empty-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--text); }
    .ui-empty-hint { margin: 0; font-size: 13px; line-height: 1.5; }

    .page-loading.show {
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
      min-height: 160px;
    }
    .page-loading.show::before {
      content: ""; width: 22px; height: 22px; border-radius: 50%;
      border: 2px solid var(--border); border-top-color: var(--primary);
      animation: qr-spin .75s linear infinite;
    }

    .svc-status { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; }
    .modal { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
    .drawer { box-shadow: var(--shadow-lg); border-left: 1px solid var(--border); }
    .modal-backdrop { background: rgba(15,23,42,.42); backdrop-filter: blur(2px); }
    .drawer-backdrop { background: rgba(15,23,42,.28); }

    .acct-hero-card { border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-left-width: 3px; }
    .acct-card { background: var(--surface); transition: border-color var(--ease), box-shadow var(--ease); }
    .acct-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

    .ai-order-item.primary { border-color: var(--primary-border); background: var(--primary-soft); }
    .ai-order-rank.primary { color: var(--primary); background: var(--primary-soft); }
    .publish-preview { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-border); }
    .platform-row.active { border-color: var(--primary-border); box-shadow: 0 0 0 1px rgba(37,99,235,.08); }
    .notes-stat-chip:hover { border-color: var(--primary-border); }
    .notes-stat-chip.active { background: var(--primary-soft); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
    .notes-stat-chip.active .label { color: var(--primary); }
    .notes-filter-select:hover { border-color: var(--primary-border); }
    .notes-filter-select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
    .notes-filter-select.is-active { border-color: var(--primary); background-color: var(--primary-soft); color: var(--primary); }
    .notes-file-pick:hover, .notes-file-pick.dragover { border-color: var(--primary); background: var(--primary-soft); }
    #notesTable tbody tr.notes-row:hover { background: var(--primary-soft); }
    .settings-switch-track { background: var(--border-strong); }
    .dl-problem-tab.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
    .ec-module-tag { background: var(--primary-soft); }
    .range-time-chip { background: var(--primary-soft); }
    .verify-progress-fill { background: linear-gradient(90deg, var(--primary), #60A5FA); }

    .task-actions .btn + .btn { margin-left: 0; }
    th, td { border-bottom-color: var(--border); }
    .data-table-wrap { background: var(--surface); }

    .ui-rev-mark { /* build stamp */ }

/* ========== Phase D: UX polish ========== */

.btn-secondary {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border-strong) !important;
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2) !important;
  border-color: var(--muted) !important;
  color: var(--text) !important;
}

.card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.card.is-clickable { cursor: pointer; }
.card.is-clickable:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card.card-warn.is-clickable:hover { border-color: var(--warn); }

.data-table-wrap.scroll-y,
.notes-table-shell.scroll-y {
  max-height: min(560px, 62vh);
  overflow: auto;
}
.data-table-wrap.scroll-y thead th,
.notes-table-shell.scroll-y thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 var(--border);
}

.dt-empty { padding: 8px !important; border-bottom: none !important; }
.ui-empty-inline {
  border: none;
  background: transparent;
  padding: 28px 16px;
}
.ui-empty-inline .ui-empty-ico { margin-bottom: 10px; }

.note-plat-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; font-weight: 600;
}
.note-plat-pill .plat-dot { width: 6px; height: 6px; }
.note-plat-pill.ok { color: var(--success); background: var(--success-soft); border-color: var(--success-border); }
.note-plat-pill.fail { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
.note-plat-pill.pending { color: var(--muted); background: var(--surface-3); border-color: var(--border); }
.note-plat-pill.running { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-border); }

.more-menu-pop button.danger { color: var(--danger); }
.more-menu-pop button.danger:hover { background: var(--danger-soft); }
.btn-more {
  width: 30px; padding-left: 0; padding-right: 0; font-size: 16px; letter-spacing: 1px; line-height: 1;
}
.task-actions { gap: 6px; align-items: center; }
table.data-table th.dt-action-wide,
table.data-table td.task-actions { width: 196px; min-width: 196px; overflow: visible; }
table.data-table.publish-tasks-table td.task-actions { overflow: visible; }

.pipe-track { gap: 0; }
.pipe-step { position: relative; margin-right: 12px; }
.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border-strong);
  border-top: 2px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg);
  opacity: .7;
}
@media (max-width: 720px) {
  .pipe-step { margin-right: 0; }
  .pipe-step:not(:last-child)::after { display: none; }
}

.panel-collapse > summary.panel-head {
  list-style: none; cursor: pointer; user-select: none; margin-bottom: 0;
}
.panel-collapse > summary.panel-head::-webkit-details-marker { display: none; }
.panel-collapse > summary.panel-head::after {
  content: "展开";
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.panel-collapse[open] > summary.panel-head::after { content: "收起"; }
.panel-collapse > summary.panel-head h3 { margin: 0; }
.panel-collapse .panel-collapse-body { margin-top: 12px; }

#toastStack {
  position: fixed; right: 20px; bottom: 20px; z-index: 10060;
  display: flex; flex-direction: column-reverse; gap: 8px;
  max-width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.45;
  animation: toast-in .18s ease;
}
.toast-item .toast-bar {
  width: 3px; align-self: stretch; border-radius: 3px; flex-shrink: 0; background: var(--primary);
}
.toast-item.success .toast-bar { background: var(--success); }
.toast-item.error .toast-bar { background: var(--danger); }
.toast-item.warn .toast-bar { background: var(--warn); }
.toast-item.info .toast-bar { background: var(--primary); }
.toast-body { flex: 1; min-width: 0; }
.toast-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.toast-close {
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; padding: 0 2px; font-size: 16px; line-height: 1;
}
.toast-close:hover { color: var(--text); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page { display: none; }
.page.active {
  display: block;
  animation: page-in .16s ease;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page.active, .toast-item { animation: none; }
}

.nav-toggle {
  display: none;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.4); z-index: 90;
}
.theme-toggle {
  width: 32px; height: 32px; padding: 0; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-left h2 { margin: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    width: min(var(--sidebar-w), 80vw) !important;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .brand .brand-text, .brand-sub, .nav a .nav-label { display: inline !important; }
  .nav-group-label { display: block !important; }
  .nav-group { margin-bottom: 14px !important; }
  .brand { padding: 16px 12px 12px !important; display: block !important; }
  .brand-mark { justify-content: flex-start !important; }
  .nav a { justify-content: flex-start !important; padding: 8px 10px 8px 12px !important; }
  .topbar { padding-left: 12px; gap: 10px; }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1120;
  --surface: #111827;
  --surface-2: #1A2234;
  --surface-3: #243047;
  --card: var(--surface);
  --sidebar: #060A12;
  --sidebar-hover: rgba(255,255,255,.07);
  --sidebar-active: rgba(59,130,246,.22);
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --subtle: #6B7280;
  --border: #2A3548;
  --border-strong: #3B4A63;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.55);
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-soft: rgba(59,130,246,.16);
  --primary-border: rgba(59,130,246,.35);
  --success-soft: rgba(5,150,105,.18);
  --warn-soft: rgba(217,119,6,.18);
  --danger-soft: rgba(220,38,38,.18);
}
html[data-theme="dark"] .topbar { background: rgba(17,24,39,.92); }
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-secondary { background: var(--surface-2) !important; }
html[data-theme="dark"] .drawer pre { background: #0a0a0a; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }

/* .dash-attention-panel removed — exceptions use .dash-alerts */


.crawl-profile-col-plat { text-align: center; font-size: 12px; color: var(--muted); }
.crawl-profile-plat { justify-self: center; }
.bluev-picker .bluev-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.bluev-card { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.plat-badge.dianping { background: #fff0eb; color: #ff6633; }
.plat-dot.dianping { background: #ff6633; }

/* Crawl login status bar (used platforms only) */
#crawlLoginBar.crawl-login-bar { display:none; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 14px; border-radius:8px; margin-bottom:12px; font-size:13px; border:1px solid var(--border, #e5e7eb); background: var(--panel-soft, #f8fafc); color: var(--text-muted, #64748b); }
#crawlLoginBar.crawl-login-bar.show { display:flex !important; }
.crawl-login-bar.is-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.crawl-login-bar-left { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.crawl-login-chip { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:999px; background: rgba(0,0,0,.04); font-size:12px; }
.crawl-login-chip.ok::after { content:" ✓"; }
.crawl-login-chip.bad { background: rgba(220,38,38,.08); }
.crawl-login-risk { color: var(--warn) !important; }
.crawl-supported-details summary { cursor:pointer; font-size:13px; color: var(--text-muted, #64748b); }
.crawl-login-gate-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--border, #e5e7eb); }
.crawl-login-gate-row:last-child { border-bottom:none; }

/* Notes drawer: collapse filesystem paths */
.notes-tech-details {
  display: inline;
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted, #888);
}
.notes-tech-details summary {
  cursor: pointer;
  display: inline;
  list-style: none;
}
.notes-tech-details summary::-webkit-details-marker { display: none; }
.notes-tech-details code {
  display: block;
  margin-top: 4px;
  word-break: break-all;
  white-space: pre-wrap;
}


.scan-risk-line {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--warn);
  line-height: 1.4;
}
.scan-modal .add-acct-tabs { margin: 10px 20px 0; }
.scan-modal .add-acct-pane { padding: 0 20px 16px; }
.scan-platform-chips[hidden] { display: none !important; }
.scan-modal .qr-login-card { margin-top: 10px; }


.qr-login-placeholder.is-waiting,
.qr-login-placeholder.is-done,
.qr-login-placeholder.is-failed {
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.45;
}
.qr-login-placeholder.is-waiting::before {
  content: '';
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: qr-spin .75s linear infinite;
}
.qr-login-placeholder.is-done {
  color: var(--success);
  font-weight: 600;
}
.qr-login-placeholder.is-done::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.2 16.6 5.4 12.8l1.4-1.4 2.4 2.4 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.2 16.6 5.4 12.8l1.4-1.4 2.4 2.4 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.qr-login-placeholder.is-failed { color: var(--danger); }
.qr-login-placeholder.is-captcha {
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.45;
  color: #b45309;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 12px;
}
.qr-login-placeholder.is-captcha::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  animation: none;
  border: none;
}
.qr-login-loading.is-captcha { color: #b45309; font-weight: 600; }


/* 蓝 V 停用态 */
.acct-card.acct-disabled {
  opacity: 0.62;
  filter: grayscale(0.15);
}
.acct-card.acct-disabled:hover {
  box-shadow: none;
}
.acct-enable-toggle {
  user-select: none;
  color: var(--muted);
}

/* Help center：全页嵌入飞书正文；加载遮罩盖在挂载区上，避免「加载中→空白」 */
.content:has(#page-help.active) {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#page-help.active {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  animation: none;
}
.help-page {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: var(--card, #fff);
}
.help-doc-busy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card, #fff);
  color: var(--muted);
  font-size: 14px;
}
.help-doc-busy[hidden] { display: none !important; }
.help-doc-busy-spin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: qr-spin .75s linear infinite;
}
.help-doc-mount {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: var(--card, #fff);
  overflow: hidden;
}
.help-doc-mount > * {
  width: 100% !important;
  height: 100% !important;
}
.help-doc-fallback {
  margin: 24px 28px;
  padding: 28px 20px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #E6E8EC);
  border-radius: 12px;
}
.help-fallback-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
[data-theme="dark"] .help-doc-mount,
[data-theme="dark"] .help-doc-fallback {
  background: var(--card);
  border-color: var(--border);
}
