/* 账号区（H9 ⑥）：只有这一个新样式文件，类名一律 .ac- 前缀；颜色圆角全部用 tokens.css 的变量，
   能用 base.css 现成类（.page .panel .card .btn .tag .kv .tbl .note .tabs .stat .empty .grid-*）的地方就不另写。 */

/* 登录框：未登录时四页原地渲染同一个它 */
.ac-gate { max-width: 440px; margin: 24px auto 64px; }
.ac-gate-hd { margin-bottom: 20px; }
.ac-tabs { margin-bottom: 20px; }

/* 未登录首页两栏（H10 ⑦）：左边讲清楚注册能拿到什么，右边是既有登录/注册/忘记密码表单（AuthGate bare，不重复大标题） */
.ac-gate-grid { align-items: start; margin-top: 8px; }
.ac-gate-grid .ac-gate { margin: 0 auto; }
.ac-pitch-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ac-pitch-list li { position: relative; padding-left: 18px; font-size: var(--fs); line-height: 22px; color: var(--ink-80); }
.ac-pitch-list li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-24); }
.ac-form { display: flex; flex-direction: column; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-20); padding: 24px; }
.ac-field { display: flex; flex-direction: column; gap: 6px; }
.ac-label { font-size: var(--fs-12); line-height: 20px; color: var(--ink-60); }
.ac-input { height: 40px; width: 100%; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-8); background: var(--bg); color: var(--ink); font-size: var(--fs); font-family: inherit; outline: 0; transition: border-color var(--t); }
.ac-input::placeholder { color: var(--ink-24); }
.ac-input:focus { border-color: var(--ink-24); }
.ac-input-grow { flex: 1 1 auto; min-width: 0; }
.ac-inline { display: flex; align-items: center; gap: 8px; }
.ac-inline .ac-input { flex: 1 1 auto; min-width: 0; }
.ac-inline .btn { flex: none; height: 40px; }
.ac-submit { height: 40px; }
.ac-error { padding: 10px 14px; border-radius: var(--r-12); background: var(--red-bg); color: #A82323; font-size: var(--fs); line-height: 20px; }

/* 身份条：四页共用，右侧那颗就是退出登录 */
.ac-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; margin-bottom: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-14); }
.ac-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ac-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--brand-bg); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-16); font-weight: 600; }
.ac-id-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-id-name { font-size: var(--fs); font-weight: 600; color: var(--ink); }

/* 概览的三张入口卡（.card 的排版，加一个图标位） */
.ac-entry { gap: 8px; text-decoration: none; color: var(--ink); }
.ac-entry-ic { width: 36px; height: 36px; flex: none; border-radius: var(--r-12); background: var(--ink-06); color: var(--ink-80); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }

/* 我的密钥 */
.ac-agent { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-20); padding: 20px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.ac-agent-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ac-agent-name { display: flex; align-items: center; gap: 8px; font-size: var(--fs-16); font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.ac-key { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-12); }
.ac-key-txt { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-80); overflow: auto; white-space: nowrap; }
.ac-confirm { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-12); background: var(--amber-bg); color: #8A5300; font-size: var(--fs); line-height: 20px; }
.ac-bind { font-size: var(--fs-12); line-height: 20px; color: var(--ink-60); }
.ac-bind-item { display: inline-block; margin-right: 8px; font-family: var(--mono); color: var(--ink-80); }

/* H43 ④：绑定用户改成「摘要一行 + 点开抽屉」。摘要要看着能点 —— 整行是个按钮，
   hover 有底、末尾一个 `>`；原来那行平铺文字在 18 条时要折四行，还把同一个人数成两个。 */
.ac-bind-sum { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; width: 100%; padding: 6px 8px; margin: -6px -8px;
               border-radius: var(--r-8); font-size: var(--fs-12); line-height: 20px; color: var(--ink-60);
               text-align: left; transition: background var(--t); }
.ac-bind-sum:hover { background: var(--ink-04); color: var(--ink-80); }
.ac-bind-n b { color: var(--ink); font-weight: 600; }
/* 10-26：外卖 / 跑腿 / 零售三枚计数并排，色相分开（琥珀 / 蓝 / 绿），为 0 的照列、只是淡一点；「明细 >」跟在后面，不再甩到行尾。
   计数枚用 inline-block 不用 flex：名字与数字之间那个空格要留在 innerText 里（冒烟按「跑腿 1」认卡片） */
.ac-bind-caps { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-bind-cap { display: inline-block; height: 22px; line-height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 500; white-space: nowrap; }
.ac-bind-cap b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ac-bind-cap.is-amber { background: var(--amber-bg); color: var(--amber); }
.ac-bind-cap.is-blue { background: var(--brand-bg); color: var(--brand); }
.ac-bind-cap.is-green { background: var(--green-bg); color: var(--green); }
.ac-bind-cap.is-zero { opacity: .5; }
.ac-bind-more { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-40); }
.ac-bind-sum:hover .ac-bind-more { color: var(--brand); }

/* 直连内核 */
.ac-steps { margin: 0; padding-left: 20px; list-style: decimal; color: var(--ink-80); font-size: var(--fs); line-height: 22px; }
.ac-steps li { margin: 6px 0; }
.ac-steps-flow { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-20); padding: 20px 20px 20px 40px; }
.ac-steps-flow li { margin: 10px 0; }
.ac-steps-flow code { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--ink-06); border-radius: var(--r-4); padding: 1px 6px; margin-right: 8px; }
.ac-ep .codeblock { font-size: 12px; }
.ac-tools { border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; background: var(--bg); }
.ac-tool + .ac-tool { border-top: 1px solid var(--line-2); }
.ac-tool-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; }
.ac-tool-hd:hover { background: var(--ink-04); }
.ac-tool-hd .ic { color: var(--ink-40); font-size: 14px; }
.ac-tool-name { font-family: var(--mono); font-size: 13px; color: var(--ink); width: 220px; flex: none; overflow: hidden; text-overflow: ellipsis; }
.ac-tool-sum { font-size: var(--fs); color: var(--ink-60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-tool-bd { padding: 0 16px 16px; }
.ac-desc { margin: 0 0 12px; padding: 12px 16px; background: var(--bg-2); border-radius: var(--r-12); font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--ink-80); white-space: pre-wrap; overflow: auto; }
.ac-params { border: 1px solid var(--line-2); border-radius: var(--r-12); overflow: hidden; }
.ac-params td { height: 40px; font-size: 13px; }
.ac-params th { height: 36px; }

/* ---------------------------------------------------------------------------
 * 独立登录页 `#/login`（H14）
 *
 * 为什么另起一套 `.lg-` 而不是复用 `.ac-gate`：`.ac-gate` 是**嵌在账号页里**的一块，
 * 它的留白、标题层级都跟着那一页走；这一页是整屏的单一任务，版式前提不一样。
 * 表单内部仍然用 `.ac-field / .ac-input / .ac-form`——长得一样的东西就该是同一份样式。
 *
 * ⚠️ 侧栏在这一页藏掉（下面 body[data-route] 那条）。之所以从这里藏而不是改 shell.css：
 * 那 8 个文件有 sha256 基线，一个字节都不动。
 * ------------------------------------------------------------------------ */
body[data-route="login"] .sidebar,
body[data-route="login"] .side-handle,
body[data-route="login"] .nav-scrim { display: none !important; }
/* 顶栏也藏（09-30 用户：登录页上搜索框搜不出东西、右上「登录」点了还是这一页 —— 左侧品牌区已经有 logo 与站名）。 */
body[data-route="login"] .topbar { display: none !important; }
body[data-route="login"] .lg-page { min-height: calc(100vh - 8px); }   /* 顶栏藏了，这一屏的高度不再扣它 */
body[data-route="login"] .bfl-main { background: var(--bg-2); }

/* 登录页版式：左讲清这是什么、右让人进去（H50，用户指着原虾点登录页提的「参考图二」）。
 *
 * 原来是一张 420px 的白卡片居中：进来的人只看见一个表单，**说不出这是什么站、凭什么在这儿注册**。
 * 分栏之后左边那半承担这件事 —— 一句话定位 + 能力节点图 + 三条事实，右边保持原样的表单。
 *
 * 颜色一律取既有 token（品牌蓝那套），**不照抄参考图的橙**：站内其余页面全是蓝的，
 * 单给登录页换个色系，等于告诉人"你跳到别的站了"。
 */
.lg-page { min-height: calc(100vh - var(--topbar-h) - 8px); display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; }

/* ── 左：这是什么 ─────────────────────────────────────────── */
.lg-pitch { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  gap: 28px; padding: 56px 56px 48px; background:
    radial-gradient(120% 90% at 8% 0%, var(--brand-bg-2) 0%, rgba(0, 0, 0, 0) 58%),
    radial-gradient(90% 80% at 92% 100%, var(--brand-bg) 0%, rgba(0, 0, 0, 0) 60%), var(--bg-2); }
.lg-pitch-hd { display: flex; align-items: center; gap: 10px; }
.lg-pitch-hd .lg-img { width: 40px; height: auto; }
.lg-pitch-hd b { font-size: 16px; font-weight: 600; color: var(--ink); }
.lg-h1 { margin: 0; font-size: 34px; line-height: 46px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.lg-h1 em { font-style: normal; color: var(--brand); }
.lg-lead { margin: -14px 0 0; font-size: var(--fs-16, 16px); line-height: 28px; color: var(--ink-60); max-width: 30em; }

/* 能力节点图：中间是网关，六个能力围一圈（纯 CSS 栅格，不引图片 —— 它要跟着暗色一起变） */
.lg-net { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; align-items: center; max-width: 520px; }
.lg-node { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-12); color: var(--ink-80); box-shadow: 0 1px 2px rgba(20, 21, 28, .04); }
.lg-node .ic { color: var(--brand); font-size: 14px; }
.lg-hubnode { grid-row: span 3; display: grid; place-items: center; gap: 2px; aspect-ratio: 1; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 21, 28, .06); }
.lg-hubnode .lg-hub-img { width: 34px; height: auto; margin-bottom: 2px; }
.lg-hubnode b { font-size: var(--fs); color: var(--ink); }
.lg-hubnode span { font-size: 10.5px; letter-spacing: .08em; color: var(--ink-40); }
.lg-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.lg-facts li { font-size: var(--fs-12); color: var(--ink-60); }
.lg-facts b { color: var(--ink); font-size: var(--fs); margin-right: 5px; font-variant-numeric: tabular-nums; }

/* ── 右：进去 ─────────────────────────────────────────────── */
.lg-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 40px 48px 44px; background: var(--bg); }
.lg-card { width: 100%; max-width: 400px; }
.lg-brand { display: none; }   /* 品牌在左半边，右半边不重复 */
.lg-title { margin: 0 0 6px; font-size: 26px; line-height: 34px; font-weight: 600; color: var(--ink); }
.lg-sub { margin: 0 0 18px; font-size: 13px; line-height: 20px; color: var(--ink-60); }
.lg-next { margin-bottom: 16px; padding: 10px 14px; border-radius: var(--r-12);
  background: var(--brand-bg); color: var(--ink-80); font-size: 13px; line-height: 20px; }
.lg-next b { color: var(--ink); font-weight: 600; }
.lg-tabs { margin-bottom: 18px; }
.lg-form { gap: 14px; border: 0; border-radius: 0; padding: 0; background: none; }
.lg-submit { width: 100%; margin-top: 2px; height: 44px; font-size: var(--fs-16, 16px); }
.lg-foot { font-size: 13px; color: var(--ink-40); display: flex; align-items: center; gap: 10px; }
.lg-foot a { color: var(--ink-60); text-decoration: none; }
.lg-foot a:hover { color: var(--brand); }
.lg-dot { color: var(--ink-24); }
.lg-deny { margin-bottom: 16px; padding: 10px 14px; border-radius: var(--r-12);
  background: var(--red-bg); color: var(--ink-80); font-size: 13px; line-height: 20px; }
.lg-deny-a { display: inline-block; margin-top: 4px; color: var(--red); text-decoration: none; font-weight: 600; }
.lg-deny-a:hover { text-decoration: underline; }

/* 窄屏：左半边收成一段抬头（**不整块删掉** —— 手机上第一次来的人更需要那句定位），节点图让位给表单 */
@media (max-width: 960px) {
  .lg-page { grid-template-columns: minmax(0, 1fr); }
  .lg-pitch { padding: 28px 20px; gap: 14px; }
  .lg-h1 { font-size: 24px; line-height: 34px; }
  .lg-lead { margin: 0; font-size: var(--fs); line-height: 24px; }
  .lg-net, .lg-facts { display: none; }
  .lg-side { padding: 28px 20px 36px; }
}

/* ---------------------------------------------------------------------------
 * R13-2②：补齐 console 的开发者功能 —— 测试绑定 / 删除 agent / 渠道 / 档位升级 / 问题反馈 / 账号设置。
 * 只追加、一律 .ac- 前缀；能用现成类（.panel .tbl .tag .chip .note .ac-field .ac-input .ac-confirm）的不另写。
 * ------------------------------------------------------------------------ */
.ac-bind-row .btn { flex: none; }
.ac-bind-row .ac-bind-sum { width: auto; margin: -2px 0 -2px -6px; padding: 2px 6px; color: var(--ink-80); }
.ac-bind-n .ac-chan-k { margin-right: 6px; }
.ac-bindf { display: flex; flex-direction: column; gap: 14px; }
.ac-hint { font-size: var(--fs-12); line-height: 18px; color: var(--ink-40); }
.ac-ok { padding: 10px 14px; border-radius: var(--r-12); background: var(--green-bg); color: var(--ink-80); font-size: var(--fs); line-height: 20px; }
.ac-textarea { height: auto; min-height: 88px; padding: 10px 14px; line-height: 22px; resize: vertical; }
.ac-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs); color: var(--ink-80); cursor: pointer; }
.ac-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 16px; }
.ac-sub { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-12); background: var(--bg-2); display: flex; flex-direction: column; gap: 14px; }
.ac-panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ac-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 历史列表（升级申请 / 问题反馈）：一条一行，点开看全文 */
.ac-hist { border: 1px solid var(--line); border-radius: var(--r-12); background: var(--bg); overflow: hidden; }
.ac-hist-i + .ac-hist-i { border-top: 1px solid var(--line-2); }
.ac-hist-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; width: 100%; text-align: left; }
button.ac-hist-hd:hover { background: var(--ink-04); }
.ac-hist-t { font-size: var(--fs); font-weight: 600; color: var(--ink); }
.ac-hist-bd { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.ac-pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: var(--fs); line-height: 22px; color: var(--ink-80); }

/* R13-2② 第二轮：我的密钥里每个 agent 下只读列出已配置渠道（照 console，不标链路） */
.ac-chan { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: var(--fs-12); line-height: 20px; color: var(--ink-60); }
.ac-chan-k { color: var(--ink-40); }
.ac-chan-i { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: var(--r-8); background: var(--bg-2); }

/* 渠道签名密钥框：用 text + 打码显示，不做 password 框 —— 浏览器不会弹「保存密码」、也不会往里自动填已存的登录密码 */
.ac-secret { -webkit-text-security: disc; }

/* ---------------------------------------------------------------------------
 * H87：平台接入（我的密钥页每张 agent 卡片里的一块，见 web/app/pages/account/platform.js）
 * 只追加、一律 .ac-pf 前缀；按钮、标签、提示条、二次确认条都用现成类（.btn .tag .note .ac-ok .ac-error .ac-confirm .ac-hint）。
 * ------------------------------------------------------------------------ */
.ac-pf { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-12); }
.ac-pf-hd { display: flex; align-items: center; gap: 8px; }
.ac-pf-t { font-size: var(--fs); font-weight: 600; color: var(--ink); }
.ac-pf-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ac-pf-kv { display: grid; grid-template-columns: minmax(76px, max-content) minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 0; }
.ac-pf-k { font-size: var(--fs-12); line-height: 20px; color: var(--ink-60); }
.ac-pf-v { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs); line-height: 20px; color: var(--ink-80); }
.ac-pf-code { flex: 1 1 auto; min-width: 0; padding: 6px 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-8); font-family: var(--mono); font-size: 13px; color: var(--ink-80); overflow: auto; white-space: nowrap; }
.ac-pf-secret { border-color: var(--amber); color: var(--ink); }
@media (max-width: 640px) {
  .ac-pf-kv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ac-pf-k { margin-top: 6px; }
}
/* #12：平台接入独立页（platform-page.js）——页顶三步、表格、右侧抽屉；「我的密钥」卡片上只剩的那一行状态 */
.ac-pf-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: var(--fs-12); line-height: 20px; }
.ac-pf-line a { color: var(--brand); }
.ac-pfp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.ac-pfp-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--bg-2); border-radius: var(--r-12); }
.ac-pfp-n { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: var(--fs-12); font-weight: 600; }
.ac-pfp-steps li:first-child .ac-pfp-n { background: var(--brand); color: #fff; }
.ac-pfp-name { font-weight: 600; color: var(--ink); }
.ac-pfp-cell { font-size: 13px; word-break: break-all; }
.ac-pfp-tbl .ac-pfp-ops { text-align: right; white-space: nowrap; }
.ac-pfp-ops .btn + .btn { margin-left: 8px; }
/* 抽屉本身就是外壳：里面那一块不再画灰底框 */
.drawer .ac-pf { padding: 0; background: none; border: 0; }
@media (max-width: 640px) {
  .ac-pfp-steps { grid-template-columns: minmax(0, 1fr); }
  .ac-pfp-tbl .ac-pfp-ops { white-space: normal; }
}

/* H178 在线充值的付款弹窗（微信二维码 / 支付宝提示）；页面本身的版式见下面 H188 段 */
.rc-mask { position: fixed; inset: 0; background: rgba(20, 21, 28, .45); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rc-modal { position: relative; width: 340px; max-width: 100%; background: var(--bg); border-radius: var(--r-12); padding: 28px 24px; text-align: center; box-shadow: 0 8px 32px rgba(20, 21, 28, .18); }
.rc-qr { display: block; width: 220px; height: 220px; margin: 16px auto 12px; }
.rc-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-40); cursor: pointer; }

/* ---------------------------------------------------------------------------
 * H188：充值页照 DeepSeek 开放平台（web/app/pages/account/recharge.js）。只追加、一律 .rcx 前缀。
 * 主色用墨黑 --ink（同 .chip.is-on、.btn-black），上面的字用 --bg：暗色下 --ink 变浅、--bg 变深，自己翻过来。
 * ------------------------------------------------------------------------ */
.rcx { max-width: 640px; }
.rcx-seg { display: inline-flex; gap: 2px; margin-top: 14px; padding: 3px; border-radius: var(--r-8); background: var(--bg-3); }
.rcx-seg button { height: 28px; padding: 0 14px; border-radius: 6px; color: var(--ink-60); font-size: 13px; transition: background var(--t), color var(--t); }
.rcx-seg button.is-on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-seg); }
:root[data-theme="dark"] .rcx-seg button.is-on { background: var(--line-3); }
.rcx-label { margin: 24px 0 10px; color: var(--ink-60); }
.rcx-amounts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rcx-chip { height: 34px; padding: 0 14px; border-radius: var(--r-8); background: var(--bg-3); color: var(--ink-90); transition: background var(--t), color var(--t); }
.rcx-chip:hover { background: var(--ink-12); }
.rcx-chip.is-on { background: var(--ink); color: var(--bg); font-weight: 600; }
.rcx-price { position: relative; }
.rcx-txt { height: 34px; padding: 0 6px; color: var(--ink-80); transition: color var(--t); }
.rcx-txt:hover { color: var(--ink); }
.rcx-pop { position: absolute; top: 40px; right: 0; z-index: 5; width: 280px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-12); background: var(--bg); box-shadow: var(--shadow-pop); font-size: 13px; line-height: 20px; color: var(--ink-80); }
.rcx-custom { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-60); }
.rcx-custom .ac-input { width: 180px; height: 36px; border-color: var(--line-3); }
.rcx-pays { display: flex; flex-direction: column; gap: 12px; }
.rcx-pay { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: var(--r-8); background: var(--bg); color: var(--ink-90); font-size: 15px; text-align: left; transition: border-color var(--t); }
.rcx-pay:hover { border-color: var(--ink-40); }
.rcx-pay.is-on { border: 2px solid var(--ink); padding: 0 13px; }
.rcx-pay.is-only { cursor: default; }
/* 支付图标是自画的简化版（H188 ④）：微信是 SVG，支付宝的「支」用伪元素画，不进 innerText */
.rcx-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; }
.rcx-logo svg { width: 24px; height: 24px; }
.rcx-logo.is-alipay_page { border-radius: 6px; background: #1677FF; }
.rcx-logo.is-alipay_page::after { content: '支'; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.rcx-go { display: block; width: 100%; height: 40px; margin-top: 32px; border-radius: var(--r-8); background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; transition: opacity var(--t); }
.rcx-go:hover { opacity: .88; }
.rcx-go:disabled { opacity: .35; cursor: not-allowed; }
.rcx-go.is-sm { display: inline-block; width: auto; height: 36px; margin-top: 0; padding: 0 24px; font-size: var(--fs); }
.rcx-to { margin-top: 16px; text-align: center; color: var(--ink-80); }
.rcx-tips { margin-top: 48px; color: var(--ink-80); }
.rcx-tips-t { font-weight: 600; color: var(--ink); }
.rcx-tips ol { margin: 6px 0 0; padding-left: 20px; list-style: decimal; line-height: 24px; }
.rcx-card { margin-top: 24px; padding: 24px 28px; border-radius: var(--r-12); background: var(--bg-2); }
.rcx-card + .rcx-tips { margin-top: 32px; }
.rcx-card-t { margin-bottom: 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
.rcx-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: center; margin: 0; }
.rcx-kv dt { color: var(--ink-60); }
.rcx-kv dd { margin: 0; color: var(--ink-90); word-break: break-all; }
.rcx-cp { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 6px; border-radius: 6px; color: var(--ink-40); vertical-align: middle; transition: background var(--t), color var(--t); }
.rcx-cp:hover { background: var(--ink-06); color: var(--ink-80); }
.rcx-link { color: var(--brand); }
.rcx-link:hover { text-decoration: underline; }
.rcx-claim { margin-top: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-12); }
@media (max-width: 640px) {
  .rcx-card { padding: 20px; }
  .rcx-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rcx-kv dd { margin-bottom: 8px; }
  .rcx-pop { right: auto; left: 0; width: min(280px, calc(100vw - 48px)); }
}

/* H203 新建 Agent 时选接入方式（单选卡片）：同一时刻只一种，⑲ 一个 agent 只走一种用户来源 */
.ac-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-mode-i { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-8); cursor: pointer; }
.ac-mode-i input { position: absolute; opacity: 0; pointer-events: none; }
.ac-mode-i.is-on { border-color: var(--brand); background: var(--brand-bg); }
.ac-mode-i.is-off { cursor: default; color: var(--ink-40); }
.ac-mode-h { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.ac-mode-i.is-off .ac-mode-h { color: var(--ink-40); }
.ac-mode-d { font-size: var(--fs-12); line-height: 18px; color: var(--ink-60); }
.ac-mode-i:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 760px) { .ac-mode { grid-template-columns: minmax(0, 1fr); } }

/* H211「原始数据」开关（设计稿 Hub/设计稿/原始数据开关.html）：36×20 胶囊，aria-checked 切换；kit.css 已有分段控件 .sw，故加前缀 */
.ac-sw { position: relative; width: 36px; height: 20px; border-radius: var(--r-pill); background: var(--ink-12); border: 0; padding: 0; cursor: pointer; flex: none; transition: background var(--t); }
.ac-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20, 21, 28, .2); transition: transform var(--t); }
.ac-sw[aria-checked="true"] { background: var(--brand); }
.ac-sw[aria-checked="true"]::after { transform: translateX(16px); }
.ac-sw:disabled { opacity: .45; cursor: not-allowed; }

/* H220 终端登录确认页（#/account/cli-login）：一行醒目的防钓鱼警示 + 一个码输入框 */
.cl-panel { max-width: 560px; }
.cl-warn { margin-bottom: 16px; padding: 10px 12px; border-radius: var(--r-8); background: var(--brand-bg); color: var(--ink); font-size: var(--fs-12); line-height: 18px; }
.cl-code { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); letter-spacing: .12em; text-transform: uppercase; }
.cl-ask { margin: 0 0 8px; color: var(--ink); line-height: 22px; }
.cl-can { margin: 0 0 16px; color: var(--ink-60); font-size: var(--fs-12); line-height: 18px; }
.cl-denied { color: var(--ink-60); }
.cl-kit { margin: 0 0 16px; }
.cl-pick { grid-template-columns: minmax(0, 1fr); }
.cl-pick .ac-mode-i > .ac-input { position: static; opacity: 1; pointer-events: auto; margin-top: 6px; }
