:root {
  --bg: #0b1220;
  --card: #111c33;
  --card-2: #0e1730;
  --line: #1e2c4a;
  --text: #e6edf7;
  --muted: #8fa0bd;
  --dividend: #34d399;
  --bluechip: #60a5fa;
  --innovation: #c084fc;
  --up: #ef4444;
  --down: #22c55e;
  --trig: #ef4444;
  --near1: #fb923c;
  --near2: #facc15;
  --far: #64748b;
  --over: #f87171;
  --under: #fbbf24;
}

* { box-sizing: border-box; }

/* 保证 hidden 属性在任何 display 类（如 .field/.overlay）下都生效 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 12px calc(28px + env(safe-area-inset-bottom));
}

/* -- 顶栏 -- */
.topbar {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-title { display: flex; align-items: center; gap: 8px; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-user {
  font-size: 12px;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quotes-at { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#refresh-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  width: 34px; height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#refresh-btn:active { background: var(--card); }
#logout-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
#logout-btn:active { background: var(--card); color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--far); display: inline-block; }
.dot.open { background: var(--down); box-shadow: 0 0 6px var(--down); }
.dot.closed { background: var(--far); }

/* -- 卡片 -- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
}
.card h2 { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.card h2 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.card h3 { font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.label { color: var(--muted); font-size: 12px; display: block; }

.loading, .conn-error { text-align: center; color: var(--muted); padding: 24px 0; font-size: 14px; }
.conn-error { color: var(--near1); }

/* -- 总览 -- */
.summary-main { margin-bottom: 12px; }
.summary-main .total {
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.summary-row > div { min-width: 0; }
.summary-row .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.countdown .v { color: var(--muted); font-size: 15px; }

/* -- 三桶 -- */
.stack {
  display: flex;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-2);
}
.stack span { height: 100%; }
.stack-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 12px;
}
.bucket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.bucket-row:first-of-type { border-top: none; }
.bucket-id { display: flex; align-items: center; gap: 8px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; }
.bucket-name { font-weight: 600; }
.bucket-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.bucket-pct .target { color: var(--muted); font-weight: 400; font-size: 12px; }
.bucket-amt { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.gap { font-size: 12px; margin-top: 2px; }
.gap.over { color: var(--over); }
.gap.under { color: var(--under); }
.gap.within { color: var(--muted); }

/* -- 持仓明细 -- */
.hgroup-title {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hgroup-title:first-child { margin-top: 2px; }
.hrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.hrow .nm { font-weight: 600; }
.hrow .cd { color: var(--muted); font-size: 11px; margin-left: 5px; }
.hrow .shares { color: var(--muted); font-size: 12px; display: block; }
.hrow .right { text-align: right; }
.hrow .px { font-variant-numeric: tabular-nums; }
.hrow .px .ccy { color: var(--muted); font-size: 11px; }
.hrow .mv { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hrow.failed .nm, .hrow.failed .px, .hrow.failed .mv { color: var(--muted); }

.chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip.up { background: rgba(239, 68, 68, 0.14); color: var(--up); }
.chip.down { background: rgba(34, 197, 94, 0.14); color: var(--down); }
.chip.flat { background: rgba(143, 160, 189, 0.14); color: var(--muted); }
.chip.fail { background: rgba(143, 160, 189, 0.14); color: var(--muted); }

/* -- watchlist -- */
.wl-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  background: var(--card-2);
}
.wl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.wl-head .nm { font-weight: 600; }
.wl-head .cd { color: var(--muted); font-size: 11px; margin-left: 5px; }
.wl-state { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.wl-state.TRIG { background: rgba(239,68,68,.16); color: var(--trig); }
.wl-state.NEAR1 { background: rgba(251,146,60,.16); color: var(--near1); }
.wl-state.NEAR2 { background: rgba(250,204,21,.14); color: var(--near2); }
.wl-state.FAR { background: rgba(100,116,139,.18); color: var(--far); }
.wl-state.failed { background: rgba(143,160,189,.14); color: var(--muted); }
.wl-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 7px 0 2px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.wl-nums b { font-weight: 600; }
.wl-nums .k { color: var(--muted); margin-right: 3px; }
.wl-d.up { color: var(--up); }
.wl-d.down { color: var(--down); }
.wl-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.wl-cond { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.wl-tranches-toggle {
  margin-top: 7px;
  background: none;
  border: none;
  color: var(--bluechip);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}
.wl-tranches { margin: 8px 0 2px; padding: 0; list-style: none; }
.wl-tranches li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.wl-tranches li.current { background: rgba(96,165,250,.14); color: var(--bluechip); }
.wl-tranches .ratio { color: var(--muted); }
.wl-card.dual::after {
  content: "同标的双买点规则，分别盯市";
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* -- 路线图 -- */
.timeline { padding-left: 4px; }
.tl-stage { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--line); }
.tl-stage:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-stage::before {
  content: "";
  position: absolute;
  left: -6px; top: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bluechip);
}
.tl-stage .st-title { font-weight: 600; font-size: 13.5px; }
.tl-stage ul { margin: 5px 0 0; padding-left: 18px; }
.tl-stage li { font-size: 12.5px; color: var(--muted); margin: 2px 0; }
.rules { margin: 0; padding-left: 18px; }
.rules li { font-size: 12.5px; color: var(--muted); margin: 3px 0; }

/* -- 表单：成交 / 管理 -- */
.form { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 45%; min-width: 0; }
.field-full { flex: 1 1 100%; }
.field > span { font-size: 12px; color: var(--muted); }
.field input, .field select {
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 15px;            /* ≥16px 防 iOS 聚焦缩放 */
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--bluechip);
}

/* 买/卖分段 */
.seg {
  flex: 1 1 100%;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.seg-btn {
  flex: 1;
  background: var(--card-2);
  border: none;
  color: var(--muted);
  padding: 9px 0;
  font-size: 14px;
  cursor: pointer;
}
.seg-btn.is-active { color: #fff; font-weight: 700; }
.seg-btn[data-side="buy"].is-active  { background: rgba(239,68,68,.85); }
.seg-btn[data-side="sell"].is-active { background: rgba(34,197,94,.85); }

.form-actions { flex: 1 1 100%; display: flex; justify-content: flex-end; gap: 8px; }
.btn {
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: var(--bluechip); color: #08111f; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.form-msg { flex: 1 1 100%; font-size: 12px; color: var(--near1); }

/* 生命周期 chip */
.life-chip {
  display: inline-block;
  margin-top: 7px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(143,160,189,.16);
  color: var(--muted);
}
.life-chip.triggered { background: rgba(251,146,60,.16); color: var(--near1); }
.life-chip.building  { background: rgba(96,165,250,.16); color: var(--bluechip); }
.life-chip.done      { background: rgba(34,197,94,.16); color: var(--down); }
.life-chip.cancelled { background: rgba(143,160,189,.20); color: var(--muted); }
.life-chip.paused    { background: rgba(250,204,21,.14); color: var(--near2); }

/* 计划操作按钮组 */
.wl-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.op {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.op:active { background: var(--card-2); }
.op:disabled { opacity: .5; cursor: default; }
.op-warn { color: var(--near1); border-color: rgba(251,146,60,.5); }
.op-danger { color: var(--trig); border-color: rgba(239,68,68,.5); }
.op-primary { background: var(--bluechip); color: #08111f; border-color: transparent; font-weight: 700; }

/* 已结束折叠区 */
.ended { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.ended summary { font-size: 13px; color: var(--muted); cursor: pointer; }
.ended-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.ended-row .nm { font-weight: 600; }
.ended-row .cd { color: var(--muted); font-size: 11px; flex: 1 1 100%; }
.ended-row .op { padding: 4px 9px; }

/* Toast 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  background: rgba(13,20,38,.96);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 88%;
  text-align: center;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* -- 页脚 -- */
#footer {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  padding: 14px 8px 0;
}
#footer .disclaimer { margin-top: 6px; }

/* ========== 快速对账覆盖层 ========== */
.summary-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:active { background: var(--card-2); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, .66);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay[hidden] { display: none; }   /* 覆盖 display:flex，保证 hidden 生效 */

.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 16px; margin: 0; font-weight: 700; }
.modal-head h2 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; }
.modal-head button {
  background: transparent; border: none; color: var(--muted);
  font-size: 15px; cursor: pointer; padding: 2px 6px;
}
.modal-body {
  padding: 13px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-foot {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-sm { max-width: 360px; }
.cp-sub { margin: 0; font-size: 12px; color: var(--muted); }

.rc-timer {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rc-h { font-size: 13px; color: var(--muted); margin: 4px 0 0; font-weight: 600; }
.rc-h small { font-weight: 400; margin-left: 4px; }

/* 持仓行 */
#rc-rows { display: flex; flex-direction: column; gap: 8px; }
.rc-row { display: flex; align-items: center; gap: 8px; }
.rc-row-id {
  flex: 0 0 128px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rc-row-id .nm {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-row-id .cd { font-size: 11px; color: var(--muted); }
.rc-val {
  flex: 1; min-width: 0;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 16px;             /* ≥16px 防 iOS 聚焦缩放 */
}
.rc-val:focus { outline: none; border-color: var(--bluechip); }

/* 新增持仓行 */
.rc-row-added {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
  background: var(--card-2);
  border: 1px dashed rgba(192, 132, 252, .5);
  border-radius: 10px;
  padding: 8px;
}
.rc-added-head { flex: 1 1 100%; display: flex; gap: 6px; align-items: center; }
.rc-a-code { width: 76px; }
.rc-a-name { flex: 1; }
.rc-a-bucket { width: 74px; }
.rc-a-del {
  background: transparent; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 4px;
}
.rc-added-v { flex: 1 1 100%; display: flex; gap: 6px; align-items: center; }
.rc-a-kind { flex: 0 0 auto; }
.rc-a-kind .seg-btn { flex: 0 0 auto; padding: 8px 12px; font-size: 12px; }
.rc-a-val { flex: 1; }
.rc-a-code, .rc-a-name, .rc-a-bucket, .rc-a-val {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--text);
  font-size: 16px;
  min-width: 0;
}
.rc-a-code:focus, .rc-a-name:focus, .rc-a-val:focus {
  outline: none; border-color: var(--innovation);
}

/* 现金区 */
.rc-cash { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-cash .field { flex: 1 1 30%; }
.rc-cash .field-full { flex: 1 1 100%; }
.rc-cash input, .rc-cash select {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 16px;
  width: 100%;
}
.rc-cash input:focus, .rc-cash select:focus {
  outline: none; border-color: var(--bluechip);
}

/* 周度期望对照 */
.rc-expect {
  background: rgba(96, 165, 250, .1);
  border: 1px solid rgba(96, 165, 252, .3);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 13px;
}
.rc-expect-range { color: var(--muted); margin-left: 6px; }
.rc-expect-note { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* diff 分组与行 */
.rc-group { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.rc-group-title { font-size: 12px; color: var(--muted); }
.rc-group-title span { color: var(--text); }
.rc-group-toggle {
  background: transparent; border: none;
  color: var(--muted); font-size: 12px;
  padding: 4px 0;
  display: flex; gap: 6px;
  cursor: pointer;
}
.rc-diff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--card-2);
  border-radius: 8px;
  padding: 7px 10px;
  border-left: 3px solid transparent;
}
.rc-diff-id { display: flex; flex-direction: column; min-width: 0; }
.rc-diff-id .nm { font-size: 13px; font-weight: 600; }
.rc-diff-id .cd { font-size: 11px; color: var(--muted); }
.rc-diff-right {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rc-arrow { color: var(--muted); }
.rc-delta { font-weight: 700; }
.rc-delta.up { color: var(--up); }
.rc-delta.down { color: var(--down); }
.rc-delta.flat { color: var(--muted); }

.st-changed { border-left-color: var(--bluechip); }
.st-zero { border-left-color: var(--up); }
.st-added { border-left-color: var(--innovation); }
.st-missing { border-left-color: var(--far); opacity: .85; }
.st-same { border-left-color: var(--line); opacity: .7; }

/* 警示 / 阻断 */
.rc-warnings { display: flex; flex-direction: column; gap: 5px; }
.rc-warn {
  font-size: 12px;
  color: var(--near2);
  background: rgba(250, 204, 21, .08);
  border: 1px solid rgba(250, 204, 21, .3);
  border-radius: 8px;
  padding: 7px 10px;
}
.rc-warn.block {
  color: #fca5a5;
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .4);
}

/* 强制勾选区 */
.rc-acks { display: flex; flex-direction: column; gap: 7px; }
.rc-ack {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(239, 68, 68, .07);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 8px;
  padding: 8px 10px;
}
.rc-ack input { margin-top: 3px; }
.rc-ack b { font-weight: 700; }

/* 对账前后估值 */
.rc-valuation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.rc-v-row { display: flex; justify-content: space-between; font-size: 13px; }
.rc-v-row span { color: var(--muted); }
.rc-v-row b { font-variant-numeric: tabular-nums; }
.rc-v-row b.up { color: var(--up); }
.rc-v-row b.down { color: var(--down); }
.rc-v-row b.flat { color: var(--muted); }
.rc-v-partial { font-size: 11px; color: var(--near2); }

/* 窄屏：行标识收窄，保证输入区空间 */
@media (max-width: 400px) {
  .rc-row-id { flex-basis: 108px; }
}

/* -- 登录页 -- */
.login-body { min-height: 100vh; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 16px
           calc(20px + env(safe-area-inset-bottom));
}
.login-card { width: 100%; max-width: 380px; margin: 0; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; font-weight: 700; text-align: center; }
.login-sub { color: var(--muted); font-size: 13px; text-align: center; margin: 0 0 16px; }
.login-hint { color: var(--muted); font-size: 11px; margin: 12px 0 0; text-align: center; }

/* -- 设置卡 -- */
.settings-token-actions {
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
}

/* -- 站点微信推送卡 -- */
.wx-box {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #16351f;
  border-radius: 12px;
  background: linear-gradient(180deg, #0f2218 0%, var(--card-2) 100%);
}
.wx-off {
  border-color: var(--line);
  background: var(--card-2);
  color: var(--muted);
  font-size: 13px;
}
.wx-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.wx-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: #167a3f;
  color: #eafff2;
  font-size: 12px;
  font-weight: 600;
}
.wx-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.wx-qr {
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 10px;
  background: #ffffff;
  line-height: 0;
}
.wx-qr img { display: block; width: 148px; height: 148px; }
.wx-desc { font-size: 13px; line-height: 1.7; color: var(--text); }
.wx-desc p { margin: 0 0 6px; }
.wx-desc a { color: #7ee2a8; }
.wx-note { color: var(--muted) !important; font-size: 12px; }

/* -- 高级折叠区 -- */
.adv {
  flex: 1 1 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.adv summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.adv[open] summary { margin-bottom: 10px; color: var(--text); }
.adv-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
