/* 我的账号（bind 页面专用样式，类名统一加 bind- 前缀） */
.bind { --bind-g: #bfe8d0; --bind-y: #fbe0a0; --bind-r: #f6bfb8; --bind-o: #dfe3ec; }
.bind-small { font-size: 12.5px; }
.bind-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 60px 0; color: var(--mute); font-size: 13px; }
.bind-loading .ic { width: 16px; height: 16px; }

/* 正在绑定的提示条 */
.bind-active { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13.5px; }
.bind-active .ic { width: 16px; height: 16px; }
.bind-active b { color: var(--text); font-weight: 600; }

/* ---------- 左右两栏 ---------- */
.bind-hub { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 20px; align-items: start; }

.bind-narrow { display: none; }

/* 左边：号的列表 */
.bind-side {
  position: sticky; top: 16px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.bind-sk { height: 54px; margin: 2px 0; border-radius: 10px; background: linear-gradient(90deg, #eef1f6 0%, #f7f8fb 50%, #eef1f6 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.bind-side-hd { display: flex; align-items: baseline; gap: 6px; padding: 0 10px 8px; }
.bind-side-hd b { font-size: 13px; font-weight: 600; color: var(--sub); }
.bind-side-hd small { font-size: 12px; color: var(--mute); }
.bind-side-list { display: flex; flex-direction: column; gap: 2px; }
.bind-side-empty { margin: 0; padding: 4px 10px 8px; font-size: 13px; color: var(--mute); }
.bind-acc {
  position: relative; width: 100%; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; text-align: left; transition: background .15s;
}
.bind-acc:hover { background: var(--line-2); }
.bind-acc.on { background: var(--brand-soft); }
.bind-acc.on::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.bind-acc-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.bind-acc-tt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-acc.on .bind-acc-tt b { color: var(--brand); }
.bind-acc-tt small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-acc-st { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sub); }
.bind-acc-st em { font-style: normal; }
.bind-acc.old { opacity: .7; }
.bind-acc.old:hover, .bind-acc.old.on { opacity: 1; }
.bind-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #c3c9d6; }
.bind-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, .14); }
.bind-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(243, 178, 27, .18); }
.bind-dot.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(240, 71, 58, .14); }
.bind-old-tg {
  width: 100%; display: flex; align-items: center; gap: 4px; margin-top: 8px; padding: 12px 10px 6px;
  border-top: 1px solid var(--line-2); font-size: 13px; color: var(--sub); text-align: left;
}
.bind-old-tg:hover { color: var(--text); }
.bind-old-tg .ic { width: 15px; height: 15px; margin-left: auto; color: var(--mute); transition: transform .2s; }
.bind-old-tg.open .ic { transform: rotate(180deg); }
.bind-old-list { max-height: 52vh; overflow-y: auto; }
.bind-old-list[hidden] { display: none !important; }
.bind-old-tip { margin: 0 10px 4px; font-size: 12px; color: var(--mute); }
.bind-restore-lk { align-self: flex-start; margin: 10px 10px 0; font-size: 12.5px; }

.bind-badge {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 700; font-size: 14px;
}
.bind-badge.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.bind-badge.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }

/* 右边：选中的那个号 */
.bind-pane { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.bind-head { padding: 22px 26px 0; }
.bind-head-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bind-head-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bind-head-tt b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-head-tt small { font-size: 13px; color: var(--sub); overflow-wrap: anywhere; }
.bind-head-op { display: flex; gap: 8px; flex-wrap: wrap; }
.bind-head-op .btn:disabled { opacity: .55; cursor: not-allowed; }
.bind-head-meta { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--sub); }
.bind-st { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 500; }
.bind-head-why { color: #9a5300; }
.bind-head-ago { color: var(--mute); }
.bind-old-hint { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #f5f7fb; color: var(--sub); font-size: 13px; line-height: 1.6; }
.bind-old-hint .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--mute); }
.bind-danger:hover:not(:disabled) { color: var(--red); border-color: #f5c2bd; background: #fff6f5; }

.bind-tabs { display: flex; gap: 28px; margin-top: 18px; padding: 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.bind-tabs::-webkit-scrollbar { display: none; }
.bind-tab { position: relative; flex: none; height: 46px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--sub); }
.bind-tab:hover { color: var(--text); }
.bind-tab.on { color: var(--brand); font-weight: 600; }
.bind-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.bind-tab-n { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; background: #fff1e5; color: #e5680a; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bind-body { padding: 20px 26px 26px; min-height: 340px; }

.bind-note-box { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px; border-radius: 12px; background: #f5f8ff; color: var(--sub); font-size: 14px; line-height: 1.7; }
.bind-note-box .ic { margin-top: 3px; color: var(--brand); }
.bind-note-box p { margin: 0; }

/* 什么号都没有 */
.bind-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 96px 24px; text-align: center; }
.bind-empty-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }
.bind-empty-ic .ic { width: 30px; height: 30px; }
.bind-empty b { font-size: 17px; line-height: 1.5; }
.bind-empty p { margin: 0 0 10px; color: var(--sub); font-size: 13.5px; }

/* ---------- 评论 ---------- */
.bind-cm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bind-cm-bar[hidden] { display: none; }
.bind-chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.bind-chip {
  height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 13.5px; white-space: nowrap;
}
.bind-chip i { font-style: normal; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.bind-chip:hover { border-color: #cfd6e6; color: var(--text); }
.bind-chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.bind-chip.on i { color: rgba(255, 255, 255, .7); }
.bind-cm-fetch { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bind-cm-last { font-size: 12.5px; color: var(--mute); }
.bind-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #f5f8ff; color: var(--sub); font-size: 13px; line-height: 1.6; }
.bind-note[hidden] { display: none; }
.bind-note .ic { width: 16px; height: 16px; color: var(--brand); }
.bind-fmsg { margin: 12px 0 0; font-size: 13px; color: var(--brand); line-height: 1.6; }
.bind-fmsg.bad { color: var(--red); }
.bind-fmsg[hidden] { display: none; }
.bind-cm-list { margin-top: 12px; }
.bind-cmt { padding: 16px 2px; border-bottom: 1px solid var(--line-2); }
.bind-cmt:last-of-type { border-bottom: 0; }
.bind-cmt-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bind-cmt-who { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-intent { flex: none; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: #fff1e5; color: #e5680a; }
.bind-cmt-sp { flex: 1; }
.bind-cmt-hd .pill { flex: none; }
.bind-cmt-txt { margin: 6px 0 0; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.bind-cmt-re { display: flex; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #f5f7fb; color: var(--sub); font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.bind-cmt-re small { flex: none; font-size: 12px; line-height: 1.8; color: var(--mute); }
.bind-cmt-re span { min-width: 0; }
.bind-cmt-ft { display: flex; align-items: center; gap: 14px; min-width: 0; margin-top: 8px; font-size: 12px; color: var(--mute); }
.bind-cmt-vid { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-cmt-time { flex: none; margin-left: auto; }
.bind-cm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--mute); }
.bind-cm-empty .ic { width: 34px; height: 34px; color: #cdd3e0; }
.bind-cm-empty b { font-size: 14px; font-weight: 500; color: var(--sub); }
.bind-more { display: block; width: 100%; height: 40px; margin-top: 6px; border-radius: 10px; background: #f7f9fd; color: var(--brand); font-size: 13px; }
.bind-more:hover { background: var(--brand-soft); }
.bind-cm-cap { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--mute); }
.bind-sk-row { padding: 18px 2px; border-bottom: 1px solid var(--line-2); }
.bind-sk-row i { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, #eef1f6 0%, #f7f8fb 50%, #eef1f6 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.bind-sk-row i:first-child { width: 22%; margin-bottom: 10px; }
.bind-sk-row i:last-child { width: 70%; }

/* ---------- 自动回复 ---------- */
.bind-blk { padding: 2px 0 28px; }
.bind-blk + .bind-blk { padding-top: 26px; border-top: 1px solid var(--line-2); }
.bind-blk[hidden] { display: none; }
.bind-h3 { margin: 0 0 14px; font-size: 15.5px; }
.bind-h3-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bind-h3-row .bind-h3 { margin: 0; }
.bind-shared { font-size: 12.5px; color: var(--mute); padding: 1px 8px; border-radius: 99px; background: var(--line-2); }
.bind-blk-sub { margin: -6px 0 16px; font-size: 13px; color: var(--sub); line-height: 1.65; }

.bind-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bind-mode {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 15px 16px 15px 46px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.bind-mode input { position: absolute; left: 17px; top: 17px; width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.bind-mode b { font-size: 15px; }
.bind-mode small { font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.bind-mode:hover { border-color: #cfd6e6; }
.bind-mode.on { border-color: var(--brand); background: #f7f9ff; }
.bind-mode.on b { color: var(--brand); }
.bind-mode b { display: flex; align-items: center; gap: 6px; }
.bind-mode-rec { font-style: normal; font-size: 11px; font-weight: 600; padding: 0 7px; line-height: 18px; border-radius: 99px; background: #e7f8ef; color: #0e9a59; }
.bind-warns { display: flex; gap: 10px; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: #fff7ec; color: #9a5300; font-size: 13px; line-height: 1.65; }
.bind-warns .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.bind-warns ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; }
.bind-warns li:only-child { list-style: none; margin-left: -16px; }
.bind-patrol { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.bind-patrol .bind-dot { margin: 0 2px; }
.bind-patrol-bad { margin: -8px 0 14px; font-size: 13px; color: #b25e09; }
.bind-how { margin-top: 14px; font-size: 13px; color: var(--sub); }
.bind-how summary { cursor: pointer; color: var(--mute); width: fit-content; }
.bind-how summary:hover { color: var(--brand); }
.bind-how p { margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; background: #f7f8fb; line-height: 1.7; }
.bind-mode:focus-within { box-shadow: 0 0 0 3px var(--brand-soft); }
.bind-warn-o { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff4e5; color: #b25e09; font-size: 13.5px; font-weight: 500; line-height: 1.6; }
.bind-warn-o[hidden] { display: none; }
.bind-warn-o .ic { width: 16px; height: 16px; }
.bind-unm { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: var(--sub); }
.bind-unm[hidden] { display: none; }
.bind-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--line-2); max-width: 100%; }
.bind-seg button { height: 30px; padding: 0 14px; border-radius: 8px; color: var(--sub); font-size: 13px; white-space: nowrap; }
.bind-seg button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 32, 70, .1); }

.bind-rules { display: grid; gap: 12px; margin-bottom: 12px; }
.bind-rule { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfdff; min-width: 0; }
.bind-rule-hd { display: flex; align-items: center; justify-content: space-between; }
.bind-rule-hd b { font-size: 13.5px; }
.bind-rule-del { color: var(--mute); }
.bind-rule-del:hover { color: var(--red); }
.bind-lbl { font-size: 12.5px; color: var(--sub); }
.bind-kw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 38px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: text; min-width: 0; }
.bind-kw:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bind-kw-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 26px; padding: 0 3px 0 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: 13px; overflow-wrap: anywhere; }
.bind-kw-chip button { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--brand); font-size: 14px; line-height: 1; opacity: .6; }
.bind-kw-chip button:hover { opacity: 1; background: rgba(59, 108, 246, .12); }
.bind-kw-in { flex: 1; min-width: 110px; height: 26px; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text); }
.bind-rule-txt { min-height: 78px; }
.bind-rules-empty { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--mute); font-size: 13px; line-height: 1.7; }

/* 频率：滑块 + 推荐刻度 + 红黄绿区 */
.bind-legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); }
.bind-legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.bind-legend i:first-child { margin-left: 0; }
.bind-legend i.g { background: var(--bind-g); }
.bind-legend i.y { background: var(--bind-y); }
.bind-legend i.r { background: var(--bind-r); }
.bind-reset { margin-left: auto; }
.bind-fqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px 40px; }
.bind-fq { min-width: 0; }
.bind-fq-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bind-fq-hd b { min-width: 0; font-size: 14px; font-weight: 600; }
.bind-zone { flex: none; font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; white-space: nowrap; background: var(--line-2); color: var(--sub); }
.bind-zone:empty { display: none; }
.bind-zone.g { background: #e7f8ef; color: #0e9a59; }
.bind-zone.y { background: #fff4e0; color: #b26b00; }
.bind-zone.r { background: #ffecea; color: #d33b2f; }
.bind-zone.o { background: var(--line-2); color: var(--sub); }
.bind-fq-val { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.bind-num { width: 74px; height: 32px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; }
.bind-fq-val em { min-width: 28px; font-style: normal; font-size: 13px; color: var(--sub); }
.bind-trk { position: relative; height: 26px; margin-top: 8px; }
.bind-trk-bar { position: absolute; left: 9px; right: 9px; top: 9px; height: 8px; border-radius: 99px; }
.bind-rng { position: relative; z-index: 1; display: block; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.bind-rng:focus { outline: none; }
.bind-rng::-webkit-slider-runnable-track { height: 26px; background: transparent; }
.bind-rng::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: #fff; border: 2px solid var(--text); box-shadow: 0 2px 6px rgba(20, 32, 70, .25);
}
.bind-rng:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-soft), 0 2px 6px rgba(20, 32, 70, .25); }
.bind-rng::-moz-range-track { height: 26px; background: transparent; }
.bind-rng::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--text); }
.bind-rec-row { position: relative; height: 22px; }
.bind-rec {
  position: absolute; top: 3px; left: calc(9px + (100% - 18px) * var(--p)); transform: translateX(-50%);
  font-size: 12px; line-height: 18px; color: var(--sub); white-space: nowrap;
}
.bind-rec::before { content: ""; position: absolute; left: 50%; top: -21px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--text); opacity: .45; }
.bind-rec.l { transform: translateX(-6px); }
.bind-rec.l::before { left: 6px; }
.bind-rec.r { transform: translateX(calc(-100% + 6px)); }
.bind-rec.r::before { left: calc(100% - 6px); }
.bind-rec:hover { color: var(--brand); }
.bind-fq.at-rec .bind-rec { color: var(--brand); font-weight: 600; }
.bind-fq-hint { margin: 4px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; cursor: pointer; }
.bind-fq-hint.open { display: block; -webkit-line-clamp: unset; }
.bind-hours .bind-fq-hint { cursor: default; }
.bind-hours { margin-top: 26px; }
.bind-hours .bind-fq-hd b { font-size: 14px; }
.bind-hours-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--sub); }
.bind-hours-row .select { width: 130px; }

.bind-save {
  position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 10px 14px; flex-wrap: wrap;
  margin: 4px -26px -26px; padding: 14px 26px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px);
}
.bind-dirty { margin-right: auto; font-size: 13px; color: var(--mute); }
.bind-dirty.on { color: #c26a00; font-weight: 500; }
.bind-save .bind-err { flex-basis: 100%; }

/* ---------- 发布记录 ---------- */
.bind-pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.bind-pub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(96px, auto); align-items: center; gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--line-2); }
.bind-pub-row:last-child { border-bottom: 0; }
.bind-pub-tt { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-pub-time { font-size: 12.5px; color: var(--mute); text-align: right; white-space: nowrap; }
.bind-pub .bind-cm-empty .btn { margin-top: 4px; }

/* ---------- ＋添加账号：选平台 ---------- */
.bind-choose-sub { margin: 0 0 14px; font-size: 13px; color: var(--sub); }
.bind-choose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bind-choose-it {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 18px 8px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bind-choose-it:hover { border-color: var(--c); box-shadow: 0 6px 18px rgba(20, 32, 70, .08); transform: translateY(-1px); }
.bind-choose-it .bind-badge { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.bind-choose-it b { font-size: 14px; }
.bind-choose-it small { font-size: 12px; color: var(--mute); }
.bind-choose-off { margin: 14px 0 0; font-size: 12px; color: var(--mute); line-height: 1.6; }

/* ---------- 扫码向导（弹窗） ---------- */
.bind-wiz-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.bind-wiz-hd > div { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: 15px; }
.bind-wiz-hd small { width: 100%; color: var(--mute); font-size: 12px; }
.bind-wiz-name { overflow-wrap: anywhere; }
.bind-warn { margin: 0; padding: 9px 12px; border-radius: 9px; background: #fff7ec; color: #9a5300; font-size: 13px; line-height: 1.6; }
.bind-step2 + .bind-msg:empty { display: none; }
.bind-step2 .bind-warn { margin-top: 14px; }
.bind-err { margin: 0; padding: 8px 12px; border-radius: 9px; background: #ffecea; color: var(--red); font-size: 13px; line-height: 1.6; }
.bind-err[hidden] { display: none; }
.bind-err a { color: inherit; text-decoration: underline; }
.bind-msg { margin: 12px 0 0; color: var(--sub); font-size: 13px; }
.bind-acts { margin-top: 16px; }

.bind-qr-wrap { display: flex; gap: 20px; align-items: center; }
.bind-qr-box {
  width: 232px; height: 232px; flex: none; padding: 10px; border-radius: 14px; background: #fff;
  border: 2px solid var(--c); box-shadow: 0 6px 20px rgba(20, 32, 70, .08); display: grid; place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);   /* 格子定死大小：二维码图不是正方形时也缩在框里，不撑出去 */
}
.bind-qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bind-qr-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--sub); border-radius: 8px; background: #fafbfd; }
.bind-qr-ph .ic { width: 28px; height: 28px; color: var(--brand); }
.bind-qr-ph b { font-size: 14px; color: var(--text); }
.bind-qr-ph small { font-size: 12px; color: var(--mute); }
.bind-qr-ph.ok { background: #effaf4; }
.bind-qr-ph.ok .bind-big { color: var(--green); }
.bind-big { font-size: 34px; line-height: 1; font-weight: 700; }
button.bind-expired { cursor: pointer; background: #fff7ec; }
button.bind-expired .bind-big { color: #c26a00; }
button.bind-expired:hover { background: #ffefd9; }
.bind-slow { margin-top: 4px; padding: 0 8px; line-height: 1.6; color: #9a5300 !important; }
.bind-qr-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bind-qr-side b { font-size: 16px; }
.bind-qr-side p { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.6; }
.bind-qr-side .mute { color: var(--mute); }
.bind-qr-side .link { align-self: flex-start; }

.bind-win { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 4px; text-align: center; }
.bind-win-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.bind-win-ic .ic { width: 26px; height: 26px; }
.bind-win b { font-size: 15px; }
.bind-win p { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.6; }
.bind-win p.mute { color: var(--mute); }
.bind-win-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.bind-win-qr[hidden] { display: none; }
.bind-win-qr .bind-qr-box { width: 200px; height: 200px; }
.bind-win-qr small { color: var(--mute); font-size: 12px; }

.bind-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.bind-cmd { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 8px 8px 12px; border-radius: 9px; background: #1d2640; }
.bind-cmd code { flex: 1; min-width: 0; color: #e6ebff; font: 12.5px/1.55 ui-monospace, Menlo, monospace; word-break: break-all; user-select: all; }
.bind-cmd .btn { flex: none; }
.bind-wait { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--brand); font-size: 13px; }
.bind-wait .ic { width: 15px; height: 15px; }

.bind-done { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 0; text-align: center; }
.bind-done-ic { font-size: 40px; line-height: 1.1; }
.bind-done b { font-size: 17px; }
.bind-done.bad b { color: var(--red); }
.bind-done.warn b { color: #9a5300; }
.bind-done p { margin: 0; color: var(--sub); font-size: 13.5px; line-height: 1.6; max-width: 440px; }
.bind-detail { width: 100%; margin-top: 6px; text-align: left; }
.bind-detail summary { cursor: pointer; color: var(--mute); font-size: 12.5px; text-align: center; }
.bind-detail pre { margin-top: 8px; max-height: 220px; }
.bind-done + .bind-acts { justify-content: center; }

/* 绑好后：自动认出的账号名 / 没认出时起名字 / 选填备注 */
.bind-after { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.bind-got { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #effaf4; text-align: center; }
.bind-got b { font-size: 17px; overflow-wrap: anywhere; }
.bind-got small { color: var(--sub); font-size: 12px; }
.bind-inline { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bind-inline > label { font-size: 13px; color: var(--sub); }
.bind-inline-row { display: flex; gap: 8px; min-width: 0; }
.bind-inline-row .input { flex: 1; min-width: 0; }
.bind-inline-row .btn { flex: none; }
.bind-tip { color: var(--mute); font-size: 12px; line-height: 1.6; }
.bind-after .bind-err { margin: 0; }

.bind-btn-danger { color: #fff; background: var(--red); box-shadow: 0 4px 12px rgba(240, 71, 58, .25); }
.bind-btn-danger:hover { filter: brightness(1.05); }
.bind-btn-danger:disabled { opacity: .7; cursor: progress; }
.bind-unbind ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.6; color: var(--sub); }
.bind-unbind ul b { color: var(--text); }
.bind-unbind .bind-err { margin-bottom: 12px; }

.bind-restore > p { margin: 0 0 10px; }
.bind-restore-list { display: grid; }
.bind-restore-it { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); }
.bind-restore-it:last-child { border-bottom: 0; }
.bind-restore-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bind-restore-tt b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bind-restore-tt small { font-size: 12px; color: var(--mute); }
.bind-restore .empty .ic { width: 30px; height: 30px; color: #cdd3e0; }

/* ---------- 窄屏：左边的号变成上面一排能横着滑的小块 ---------- */
@media (max-width: 1100px) {
  .bind-hub { grid-template-columns: 228px minmax(0, 1fr); gap: 16px; }
  .bind-acc-st em { display: none; }
}
@media (max-width: 860px) {
  .bind-wide { display: none; }
  .bind-narrow { display: inline; }
  .bind-hub { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bind-side {
    position: static; flex-direction: row; align-items: center; gap: 8px; padding: 2px 28px 4px 0;
    background: none; border: 0; box-shadow: none; border-radius: 0; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .bind-side::-webkit-scrollbar { display: none; }
  .bind-side-hd, .bind-old-tip { display: none; }
  .bind-side-list { display: contents; }
  .bind-sk { flex: none; width: 140px; height: 40px; border-radius: 99px; }
  .bind-acc { flex: none; width: auto; max-width: 200px; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); }
  .bind-acc.on { background: var(--brand-soft); border-color: #bccdf7; }
  .bind-acc.on::before { display: none; }
  .bind-acc .bind-badge.sm { border-radius: 50%; }
  .bind-acc-tt small { display: none; }
  .bind-acc-tt b { font-size: 13.5px; }
  .bind-acc.old { opacity: .8; border-style: dashed; }
  .bind-old-tg { flex: none; width: auto; height: 40px; margin: 0; padding: 0 12px 0 14px; border: 1px dashed #cfd6e6; border-radius: 99px; white-space: nowrap; }
  .bind-old-tg .ic { margin-left: 2px; transform: rotate(-90deg); }
  .bind-old-tg.open .ic { transform: rotate(90deg); }
  .bind-old-list { max-height: none; overflow: visible; }
  .bind-restore-lk { flex: none; margin: 0 6px; white-space: nowrap; }
  .bind-side-empty { flex: none; padding: 0 4px; white-space: nowrap; }

  .bind-head { padding: 18px 16px 0; }
  .bind-head-main { flex-wrap: wrap; }
  .bind-head-tt b { font-size: 17px; }
  .bind-head-op { width: 100%; }
  .bind-head-op .btn { flex: 1; justify-content: center; }
  .bind-head-meta { margin-left: 0; }
  .bind-tabs { gap: 24px; margin-top: 14px; padding: 0 16px; }
  .bind-body { padding: 16px 16px 20px; min-height: 260px; }
  .bind-save { margin: 4px -16px -20px; padding: 12px 16px; }
  .bind-save .btn { flex: 1; justify-content: center; }
  .bind-dirty { flex-basis: 100%; }
  .bind-modes { grid-template-columns: minmax(0, 1fr); }
  .bind-cm-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .bind-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bind-chips::-webkit-scrollbar { display: none; }
  .bind-chips { gap: 6px; }
  .bind-chip { flex: none; padding: 0 11px; font-size: 13px; }
  .bind-cm-fetch { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .bind-cm-fetch .btn { height: 36px; justify-content: center; }
  .bind-pub-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bind-pub-time { grid-column: 1 / -1; text-align: left; }
  .bind-choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bind-empty { padding: 56px 20px; }
}
@media (max-width: 560px) {
  .bind-qr-wrap { flex-direction: column; align-items: stretch; }
  .bind-qr-box { align-self: center; width: 220px; height: 220px; }
  .bind-acts .btn { flex: 1; justify-content: center; }
  .bind-inline-row { flex-wrap: wrap; }
  .bind-inline-row .input { flex-basis: 100%; }
  .bind-inline-row .btn { flex: 1; justify-content: center; }
  .bind-hours-row .select { width: auto; flex: 1; min-width: 0; }
  .bind-legend { width: 100%; order: 3; }
}
.bind .empty.err p { overflow-wrap: anywhere; }   /* 报错里常带很长的文件路径，窄屏要能折行 */
