/* ============================================================
   星算AI网关 · 控制台设计系统
   ------------------------------------------------------------
   和台账页同一套语言：ambient 彩色底 → 玻璃层 → 大圆角 → 双层阴影。
   组件顺序：外壳 / 登录 / 导航 / 顶栏 / 卡片 / 表格 / 表单 / 抽屉 / 图表。
   ============================================================ */

:root {
  --bg: #eef1f7;
  --glass: rgba(255, 255, 255, .58);
  --glass-2: rgba(255, 255, 255, .8);
  --glass-3: rgba(255, 255, 255, .3);
  --stroke: rgba(255, 255, 255, .78);
  --ink: #0b1220;
  --ink-2: #4a5568;
  --ink-3: #6b7482;
  --ink-4: #6d7684;
  --brand: #0a84ff;
  --brand-2: #5e5ce6;
  --ok: #1b8a3d;
  --ok-bg: rgba(52, 199, 89, .14);
  --warn: #b26b00;
  --warn-bg: rgba(255, 159, 10, .16);
  --bad: #c0261a;
  --bad-bg: rgba(255, 59, 48, .13);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;
  /* 展示字重：优先鸿蒙/小米等现代黑体，缺失则退回系统黑体 */
  --font-display: "HarmonyOS Sans SC", "MiSans", "OPPO Sans", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 10px 30px -18px rgba(23, 38, 70, .42), 0 2px 6px -4px rgba(23, 38, 70, .14);
  --sh-3: 0 34px 80px -34px rgba(16, 30, 60, .55), 0 6px 18px -12px rgba(16, 30, 60, .25);
  --spring: cubic-bezier(.22, .86, .24, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro SC", "PingFang SC",
          "HarmonyOS Sans SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }

/* ---------------- 环境光 ---------------- */
.ambient {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, #dbe8ff 0%, transparent 60%),
    radial-gradient(900px 620px at 88% 4%, #efe4ff 0%, transparent 62%),
    radial-gradient(900px 700px at 60% 108%, #dcf6ee 0%, transparent 60%),
    linear-gradient(180deg, #f4f6fb 0%, #eef1f7 46%, #eaedf5 100%);
}
.ambient i {
  position: absolute; display: block; border-radius: 50%;
  /* 原来这四颗光斑在跑 22s 的 transform 漂移。带 filter:blur 的元素
     每帧都要重新离屏光栅化，叠加在它上面的所有毛玻璃层就得整页重合成，
     实测滚动帧间隔 89ms（≈11fps）。静态摆放肉眼看不出差别，停掉。 */
  filter: blur(60px); opacity: .55;
  animation: none;
}
.ambient i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: -140px; background: #8fbcff; }
.ambient i:nth-child(2) { width: 460px; height: 460px; right: -100px; top: -60px; background: #c3a6ff; animation-delay: -6s; }
.ambient i:nth-child(3) { width: 620px; height: 620px; left: 42%; bottom: -380px; background: #8fe6cf; animation-delay: -12s; opacity: .42; }
.ambient i:nth-child(4) { width: 380px; height: 380px; right: 12%; bottom: -200px; background: #ffd6a8; animation-delay: -3s; opacity: .34; }
@keyframes drift { from { transform: none; } to { transform: translate3d(28px, 34px, 0) scale(1.08); } }

/* ============================================================
   登录
   ============================================================ */
.login {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
}
.login[hidden] { display: none; }
.login__wrap {
  width: min(980px, 100%);
  display: grid; grid-template-columns: 1.05fr .95fr;
  border-radius: 34px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, .95);
  overflow: hidden;
}
.login__brand {
  position: relative;
  padding: 44px 40px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(520px 320px at 12% 0%, rgba(10, 132, 255, .16), transparent 62%),
    radial-gradient(420px 300px at 88% 100%, rgba(94, 92, 230, .16), transparent 60%);
  border-right: 1px solid rgba(255, 255, 255, .6);
}
.login__mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #4aa8ff, #0a84ff 52%, #5e5ce6);
  box-shadow: 0 10px 24px -12px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.login__mark svg { width: 22px; height: 22px; }
.login__name { margin-top: 22px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.login__slogan { margin-top: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.login__feats { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.login__feat { display: flex; gap: 11px; align-items: flex-start; }
.login__feat i {
  width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, .8); color: var(--brand);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.login__feat i svg { width: 14px; height: 14px; }
.login__feat b { display: block; font-size: 12.5px; font-weight: 620; }
.login__feat span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.login__foot { margin-top: auto; padding-top: 28px; font-size: 11px; color: var(--ink-4); }

.login__form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.login__t { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.login__s { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
/* 二要素第二步：提示「发到哪个号」 + 返回上一页 */
.login__codeTip {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
  background: rgba(10, 132, 255, .06); border: 1px solid rgba(10, 132, 255, .12);
  border-radius: 10px; padding: 10px 12px;
}
.login__codeTip b { color: var(--ink); letter-spacing: .3px; }
.login__back {
  appearance: none; border: 0; background: none; padding: 4px 0;
  font: inherit; font-size: 12px; color: var(--ink-3); cursor: pointer; text-align: left;
}
.login__back:hover { color: var(--ink); }

/* 侧栏底部「锁定屏幕」：和 who 块同宽，弱化成一枚工具按钮 */
.side__lock {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 8px 10px; margin-bottom: 8px;
  border-radius: 10px; border: 1px solid rgba(19, 32, 58, .08);
  background: rgba(255, 255, 255, .6);
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.side__lock:hover { background: #fff; color: var(--ink); border-color: rgba(10, 132, 255, .22); }

/* 锁屏：整屏毛玻璃 + 中间毛玻璃卡片 */
.lock {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232, 238, 248, .45);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}
.lock__card {
  width: 396px; padding: 32px 30px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 36px 90px -30px rgba(19, 32, 58, .42), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
.lock__mark {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(160deg, #3d9cff, #0a84ff);
  box-shadow: 0 10px 24px -10px rgba(10, 132, 255, .8);
}
.lock__t { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.lock__s { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.lock__s b { color: var(--ink-2); letter-spacing: .4px; }
.lock__tip { margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.lock .btn-block { margin-top: 16px; }

/* 下面这些块用的是 display:flex，作者样式优先级高于 [hidden] 的 UA 规则。
   不补这一条，带 hidden 的元素照样显示 —— 登录页的「密码/验证码」两个面板
   就会上下堆在一起。 */
[hidden] { display: none !important; }

.login__fields { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__l { font-size: 11.5px; color: var(--ink-3); font-weight: 550; }
.input {
  height: 44px; padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 58, .1);
  background: rgba(255, 255, 255, .82);
  font-size: 13.5px; color: var(--ink);
  transition: border-color .16s, box-shadow .16s, background .16s;
  width: 100%;
}
.input::placeholder { color: var(--ink-4); }
.input:focus {
  outline: none; background: #fff;
  border-color: rgba(10, 132, 255, .5);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .12);
}
/* 密码框右侧只留我们自己的眼睛。
   Edge 会自己画一个「显示密码」，Chrome 在已保存密码时也会塞自动填充按钮 ——
   它们和我们的按钮叠在同一个位置，看起来就是「两个眼睛」。而且切成明文后
   浏览器那个会消失，于是时有时无。 */
.input--pw { padding-right: 44px; }
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
input::-webkit-credentials-auto-fill-button,
input::-webkit-strong-password-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}
.field--pw { position: relative; }
.field__eye {
  position: absolute; right: 8px; top: 28px;
  width: 30px; height: 30px; border-radius: 9px;
  border: 0; background: transparent; color: var(--ink-4);
  display: grid; place-items: center; cursor: pointer;
}
.field__eye:hover { background: rgba(120, 132, 152, .12); color: var(--ink-2); }
.field__eye.is-on { background: rgba(10, 132, 255, .1); color: var(--brand); }
.field__eye svg { width: 15px; height: 15px; }

/* 必填标记：表单里账号名称这类字段漏填会直接被拦，但标签上看不出哪些必填 */
.field__l em { color: var(--bad); font-style: normal; margin-left: 3px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); }

.btn-block {
  height: 46px; width: 100%;
  border: 0; border-radius: 15px;
  color: #fff; font-size: 14px; font-weight: 620; letter-spacing: .01em;
  background: linear-gradient(150deg, #3aa0ff, #0a84ff 58%, #4d7dff);
  box-shadow: 0 14px 28px -14px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: transform .16s, filter .16s;
}
.btn-block:hover { filter: brightness(1.05); }
.btn-block:active { transform: scale(.985); }
.btn-block[disabled] { opacity: .6; cursor: default; }

.login__hint {
  margin-top: 16px; padding: 10px 12px; border-radius: 12px;
  background: rgba(10, 132, 255, .08);
  border: 1px solid rgba(10, 132, 255, .12);
  font-size: 11px; color: #0a5bb5; line-height: 1.6;
}
.login__err {
  margin-top: 12px; font-size: 11.5px; color: var(--bad);
  min-height: 16px;
}

/* ============================================================
   外壳
   ============================================================ */
.shell {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.shell[hidden] { display: none; }

.side {
  position: sticky; top: 0; align-self: start;
  height: 100vh; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, .6);
  /* 去掉 backdrop-filter 后底色要补一点不透明度，否则渐变底会透上来发灰 */
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .64));
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #4aa8ff, #0a84ff 52%, #5e5ce6);
  box-shadow: 0 6px 16px -8px rgba(10, 132, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__t { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.brand__s { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }

.nav {
  display: flex; flex-direction: column; gap: 1px;
  overflow-y: auto; overflow-x: hidden;
  /* 侧栏有 14px 内边距，滚动条原本悬在离右缘 16px 处。向右借 10px
     再等量补回 padding，菜单项宽度不变、滚动条贴到面板右缘 4px 处。 */
  margin-right: -10px;
  padding-right: 12px;
  /* 滚到边界不要把滚动传递给整页 */
  overscroll-behavior: contain;
}

/* ============================================================
   功能树滚动条
   ------------------------------------------------------------
   原来这里吃浏览器默认样式：12~17px 宽、带灰色凹槽和上下箭头，
   压在白色玻璃侧栏上像一条补丁。改成 6px 药丸滑块：
   静止时几乎隐形，鼠标进入侧栏才显形，hover 滑块转品牌蓝。
   轨道全透明，滑块两侧留 1px 透明边做内缩，避免贴边显粗。
   ============================================================ */
/* 注意：Chrome 121+ 只要看到 scrollbar-width / scrollbar-color，就会
   整体切到标准渲染路径并忽略下面 ::-webkit-scrollbar 的 width。
   所以标准属性只给 Firefox（@supports 的 -moz-appearance 只有它能命中），
   Chromium 系走伪元素这条路才能真的收到 6px。 */
@supports (-moz-appearance: none) {
  .nav { scrollbar-width: thin; scrollbar-color: rgba(120, 132, 152, .28) transparent; }
}
.nav::-webkit-scrollbar { width: 6px; height: 6px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.nav::-webkit-scrollbar-thumb {
  background: rgba(120, 132, 152, .16);
  border: 1px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  transition: background .2s;
}
.nav:hover::-webkit-scrollbar-thumb {
  background: rgba(120, 132, 152, .34);
  background-clip: padding-box;
}
.nav::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 132, 255, .5);
  background-clip: padding-box;
}
.nav::-webkit-scrollbar-thumb:active {
  background: rgba(10, 132, 255, .68);
  background-clip: padding-box;
}
.nav::-webkit-scrollbar-corner { background: transparent; }
/* 分组标题：可点击折叠，字号放大、改深色、加图标，和菜单项拉开层级 */
.nav__g {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin: 0; border: 0; background: none;
  font-family: inherit; text-align: left; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  letter-spacing: .01em;
  padding: 10px 11px 5px;
  border-radius: 10px;
  transition: color .18s;
}
.nav__gi {
  display: grid; place-items: center; flex: none;
  width: 18px; height: 18px; color: var(--ink-2);
  transition: color .18s;
}
.nav__gi svg { width: 17px; height: 17px; }
.nav__gt { flex: 1; min-width: 0; }
.nav__gc {
  flex: none; width: 15px; height: 15px; color: var(--ink-4);
  transition: transform .2s var(--spring), color .18s;
}
.nav__g.is-collapsed .nav__gc { transform: rotate(-90deg); }
.nav__g:hover, .nav__g:hover .nav__gi { color: var(--brand); }
.nav__g:hover .nav__gc { color: var(--ink-3); }
.nav__items[hidden] { display: none; }
.nav__i {
  display: flex; align-items: center; gap: 9px;
  height: 35px; padding: 0 11px;
  border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-2);
  font-size: 14px; text-align: left; cursor: pointer;
  transition: background .16s, color .16s;
  white-space: nowrap;
}
.nav__i:hover { background: rgba(255, 255, 255, .66); color: var(--ink); }
.nav__i.is-on {
  background: rgba(255, 255, 255, .92); color: #0a63c9; font-weight: 620;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 20px -14px rgba(16, 40, 80, .5);
}
.nav__i .nav__dot { width: 5px; height: 5px; border-radius: 50%; background: #c8d0dc; flex: none; }
.nav__i.is-on .nav__dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(10, 132, 255, .16); }
.nav__badge {
  margin-left: auto; font-size: 11px; font-weight: 650;
  padding: 1px 6px; border-radius: 99px;
  background: var(--bad-bg); color: var(--bad);
}

.side__foot { margin-top: auto; padding-top: 10px; }
.who {
  display: flex; align-items: center; gap: 9px;
  padding: 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .7);
}
.who__av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 650; color: #fff;
  background: linear-gradient(150deg, #7ac1ff, #0a84ff);
}
.who__n { display: block; font-size: 12px; font-weight: 600; }
.who__r { display: block; font-size: 10.5px; color: var(--ink-3); }
.who__out {
  margin-left: auto; width: 26px; height: 26px; border-radius: 9px;
  border: 0; background: transparent; color: var(--ink-4); cursor: pointer;
  display: grid; place-items: center;
}
.who__out:hover { background: rgba(255, 59, 48, .12); color: var(--bad); }
/* 点这块可以改自己的密码（非管理员唯一能改的东西），给点可点的暗示 */
.who--act { cursor: pointer; transition: background .15s, border-color .15s; }
.who--act:hover { background: rgba(255, 255, 255, .82); border-color: rgba(10, 132, 255, .28); }
.who--act .who__n::after {
  content: '改密'; margin-left: 6px; font-size: 9px; font-weight: 600;
  padding: 0 5px; border-radius: 99px; color: #0a63c9;
  background: rgba(10, 132, 255, .1); vertical-align: 1px;
}
.who--act:hover .who__n::after { background: rgba(10, 132, 255, .18); }

/* ---------------- 顶栏 ---------------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .7));
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.crumb b { color: var(--ink); font-weight: 620; font-size: 13px; white-space: nowrap; }
.crumb i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.top__sp { flex: 1; }

.iconbtn {
  width: 32px; height: 32px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  background: var(--glass-3); color: var(--ink-2);
  cursor: pointer; transition: background .16s, color .16s, transform .16s;
}
.iconbtn:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 15px; height: 15px; }

.btn {
  height: 32px; padding: 0 13px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .55);
  color: var(--ink-2); font-size: 12px; font-weight: 550;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn svg { width: 13px; height: 13px; }
.btn--brand {
  border-color: transparent; color: #fff;
  background: linear-gradient(150deg, #3aa0ff, #0a84ff 60%, #4d7dff);
  box-shadow: 0 8px 20px -12px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
}
/* .btn:hover 的 background:#fff 是 (0,2,0)，会压过 .btn--brand 的渐变 (0,1,0)，
   只补 color 不补 background 的后果是悬停变白底白字 —— 这里必须把背景一起写死 */
.btn--brand:hover {
  color: #fff;
  background: linear-gradient(150deg, #3aa0ff, #0a84ff 60%, #4d7dff);
  filter: brightness(1.06);
}
.btn--danger { color: var(--bad); }
.btn--danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn--sm { height: 27px; padding: 0 10px; font-size: 11.5px; border-radius: 9px; }

/* 表格里并排两个按钮时，别让 flex 把间距吃掉 */
.btnrow { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* 状态旁的小 i + 悬浮说明（气泡体在 console-biz.js 里挂 fixed 浮层） */
.hint-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px;
  border-radius: 50%; border: 1px solid #dfe3ec;
  background: #fff; color: var(--ink-4);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9.5px; font-style: italic; font-weight: 700; line-height: 1;
  cursor: help; user-select: none;
  transition: color .13s, border-color .13s;
}
.hint-i:hover { color: var(--ink-2); border-color: var(--ink-4); }

.hint-pop {
  position: fixed; z-index: 900; max-width: 260px;
  padding: 6px 10px; border-radius: 8px;
  background: #1b2233; color: #fff;
  font-size: 11.5px; line-height: 1.5; letter-spacing: .01em;
  box-shadow: 0 10px 26px -10px rgba(9, 15, 30, .55);
  opacity: 0; transform: translateY(2px); pointer-events: none;
  transition: opacity .12s, transform .12s;
}
.hint-pop.is-on { opacity: 1; transform: translateY(0); }
/* 胶囊形：工具条里其余控件都是药丸，别让一个方角按钮破坏节奏。
   button 默认吃系统 UI 字体，中文会比页面字体细一档，字族要显式 inherit */
.btn--pill { border-radius: var(--r-pill); font-family: inherit; font-weight: 550; }
/* 禁用按钮仍要能悬停出 title：pointer-events:none 会让鼠标落不到按钮上，
   那句「被 3 个订阅引用…」的理由永远弹不出来。原生 disabled 本身就不会派发
   click（也不会进 Tab 序列），所以只留 cursor 提示即可。 */
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------- 页面容器 ---------------- */
.page {
  padding: 18px 22px 44px;
  display: flex; flex-direction: column; gap: 14px;
  /* 2K 屏上表格会横着拉出 1600+ 宽，一行的首尾隔太远、读起来要来回扫。
     限一个上限居中，普通 1600 屏完全不受影响。 */
  max-width: 1560px; margin: 0 auto; width: 100%;
}

/* ---------------- KPI ---------------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 用量 Top10 / 组织分析 / 模型 / 价格：这几页卡片里的数值偏长（金额、日期、
   供应商名），字号比默认 23px 收一档，避免把卡片撑满 */
.kpis--sm .kpi__v { font-size: 18px; }
/* 抽屉里的卡片同理收一档：详情页三张卡挤在 720px 里，23px 会把「¥100.57」顶到边 */
.drawer .kpi__v { font-size: 18px; }
.kpi {
  position: relative; padding: 15px 16px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(120px 110px at 108% -14%, color-mix(in srgb, var(--k, #0a84ff) 22%, transparent), transparent 72%),
    rgba(255, 255, 255, .88);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .85);
  overflow: hidden;
  animation: rise .42s var(--spring) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kpi__l { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.kpi__l i { width: 5px; height: 5px; border-radius: 50%; background: var(--k, #0a84ff); flex: none; }
.kpi__v { margin-top: 7px; font-size: 23px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi__v small { font-size: 11px; font-weight: 550; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.kpi__d { margin-top: 4px; font-size: 11px; color: var(--ink-3); }

/* ---------------- 面板 ---------------- */
.panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .87));
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
}
.panel__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid rgba(19, 32, 58, .06);
}
.panel__t { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.panel__s { font-size: 11px; color: var(--ink-4); }
.panel__bd { padding: 16px 18px 18px; }
.panel__bd--flush { padding: 0; }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.grid-2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 0 2px 12px;
  border: 0; background: none; box-shadow: none; border-radius: 0;
}
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: rgba(120, 132, 152, .12); }
.seg button {
  height: 27px; padding: 0 11px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); font-size: 12px; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s; white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.is-on {
  background: #fff; color: #0a63c9; font-weight: 620;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 3px 10px -6px rgba(16, 40, 80, .5);
}
/* 输入框统一。原来有两套：.din 是 30px 高 / 11.5px 字，.inp 压根没有样式
   （浏览器默认 22px 高），同一行摆着像两个时代的东西，字还小到要凑近看。
   现在两者同款：34px 高、12.5px 字、placeholder 用更深一档的灰 —— 
   --ink-4 (#a8b0bd) 铺在白底上几乎看不见，看不出那是个能点的输入框。 */
.din, .inp {
  height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(19, 32, 58, .13);
  background: rgba(255, 255, 255, .85);
  font-size: 12.5px; color: var(--ink);
  min-width: 0;
}
.din { color: var(--ink-2); }
.din::placeholder, .inp::placeholder { color: #98a1ae; font-size: 12.5px; }
.din:focus, .inp:focus { outline: 2px solid rgba(10, 132, 255, .32); outline-offset: 1px; background: #fff; }
select.din { cursor: pointer; }

/* 原生下拉箭头紧贴右边框，看起来像被裁掉一截。统一改成自绘 chevron，
   并往左挪到 10px —— 原生箭头的位置浏览器不给调，只能自己画。 */
select:not(.rolesel select) {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e7681' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  padding-right: 28px;
}
/* 侧栏那个角色切换器很窄，塞不下箭头，保持原样 */
.rolesel select { background-image: none; padding-right: 0; }
.sp { flex: 1; min-width: 6px; }
/* 工具条里的短标签（「至」「粒度」）：字号比正文小一档、字重加重，
   既是标签就不要跟旁边可点的药丸按钮抢层级 */
.bar__lab {
  font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .2px;
  padding: 0 2px; white-space: nowrap;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

.search {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; min-width: 160px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(19, 32, 58, .09);
  background: rgba(255, 255, 255, .72); color: var(--ink-4);
}
.search input { border: 0; background: transparent; outline: none; font-size: 12px; color: var(--ink); width: 100%; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(10, 132, 255, .14); }

/* ---------------- 表格 ---------------- */
.tbl-wrap { overflow: auto; max-width: 100%; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.tbl th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; font-weight: 600; font-size: 11px; color: var(--ink-3);
  letter-spacing: .02em;
  padding: 12px 14px; white-space: nowrap;
  background: rgba(250, 251, 253, .97);
  border-bottom: 1px solid rgba(19, 32, 58, .07);
}
.tbl td {
  padding: 12px 14px; border-bottom: 1px solid rgba(19, 32, 58, .05);
  color: #26303d; font-variant-numeric: tabular-nums;
  white-space: nowrap; vertical-align: middle;
}
.tbl tbody tr { transition: background .14s, box-shadow .14s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .62); }
/* 可点行（组织、钱包、订单、日志）：原来的 hover 是白色 .62，铺在已经
   偏白的卡片上几乎看不出来，鼠标划过去毫无反应，看着像"这行不能点"。
   改成淡蓝底 + 左侧 3px 品牌色条，点之前就有反馈。 */
.tbl tbody tr.is-click { cursor: pointer; }
.tbl tbody tr.is-click:hover { background: rgba(10, 132, 255, .05); }
.tbl tbody tr.is-click:hover td:first-child { box-shadow: inset 3px 0 0 rgba(10, 132, 255, .55); }
.tbl tbody tr.is-click:active { background: rgba(10, 132, 255, .09); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .strong { font-weight: 620; color: var(--ink); }
.tbl .mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tbl .sub { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.tbl tfoot td {
  border-top: 1px solid rgba(19, 32, 58, .08);
  background: rgba(255, 255, 255, .55);
  font-weight: 650; color: var(--ink);
}

/* 单元格内的进度 */
.bar { height: 5px; border-radius: 99px; background: rgba(120, 132, 152, .18); overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8fc2ff, #0a84ff); }
.bar--ok i { background: linear-gradient(90deg, #7ee2a8, #1b8a3d); }
.bar--warn i { background: linear-gradient(90deg, #ffd08a, #ff9f0a); }
.bar--bad i { background: linear-gradient(90deg, #ffb3ae, #ff3b30); }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
  background: rgba(10, 132, 255, .12); color: #0a63c9;
}
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--bad { background: var(--bad-bg); color: var(--bad); }
.tag--mut { background: rgba(120, 132, 152, .13); color: var(--ink-3); }
.tag--purple { background: rgba(94, 92, 230, .13); color: #4a48c9; }
.tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid rgba(19, 32, 58, .06); }
.pager__s { font-size: 11px; color: var(--ink-4); }
.pager__b {
  width: 28px; height: 28px; border-radius: 9px;
  border: 1px solid rgba(19, 32, 58, .08); background: rgba(255, 255, 255, .7);
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.pager__b:hover { background: #fff; }
.pager__b[disabled] { opacity: .4; cursor: not-allowed; }
.pager__p { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------------- 图表 ---------------- */
.chartbox { width: 100%; }
.chart { width: 100%; height: 170px; display: block; overflow: visible; }
.xaxis {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 6px; font-size: 9.5px; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.chart text { font-family: var(--font); font-size: 9px; fill: var(--ink-4); }
.chart .axis { stroke: rgba(19, 32, 58, .08); stroke-width: 1; }
.chart .line { fill: none; stroke: #0a84ff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#gradA); }
.chart .bar { fill: #bcd8ff; }
.chart .bar:hover { fill: #0a84ff; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.legend__i { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.legend__i i { width: 8px; height: 8px; border-radius: 3px; }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 78px; gap: 10px; align-items: center; font-size: 11.5px; }
.hbar__n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__t { height: 8px; border-radius: 99px; background: rgba(120, 132, 152, .14); overflow: hidden; }
.hbar__t i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8fc2ff, #0a84ff); }
.hbar__v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.donut { display: flex; align-items: center; gap: 16px; }
.donut svg { flex: none; }
.donut__legend { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.donut__i { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.donut__i i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.donut__i b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 620; }

/* ---------------- 空态 ---------------- */
.empty { padding: 52px 20px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
/* 空态图标统一：页面里有的空态手写了 .empty__ic，有的只有一行字，
   切页时一块有一块没有，看着像没做完。这里给没写图标的补一个默认的
   （虚线方框 + 一条横线，中性的"这里还没有内容"），有图标的原样保留。 */
.empty:not(:has(.empty__ic))::before {
  content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .7) center / 21px 21px no-repeat
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b0bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='3' stroke-dasharray='3 2.6'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.empty b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.empty__ic {
  width: 46px; height: 46px; border-radius: 16px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .7); color: var(--ink-4);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

/* ---------------- 抽屉 ---------------- */
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(16, 24, 40, .3);
  opacity: 0; pointer-events: none; transition: opacity .26s;
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0;
  width: min(520px, 94vw);
  display: flex; flex-direction: column;
  background: rgba(252, 253, 255, .98);
  border-left: 1px solid rgba(255, 255, 255, .8);
  box-shadow: -30px 0 80px -40px rgba(16, 30, 60, .5);
  transform: translateX(102%);
  transition: transform .42s var(--spring);
}
.drawer.is-on { transform: none; }
.drawer--wide { width: min(720px, 96vw); }
.drawer__hd {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(19, 32, 58, .07);
}
.drawer__t { font-size: 15px; font-weight: 680; letter-spacing: -.015em; }
.drawer__s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.drawer__bd { flex: 1; overflow: auto; padding: 18px 20px; }
.drawer__ft {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-top: 1px solid rgba(19, 32, 58, .07);
  background: rgba(255, 255, 255, .5);
}

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form .field--full { grid-column: 1 / -1; }
.form .field__l { font-size: 11px; }
.hintline { font-size: 10.5px; color: var(--ink-4); margin-top: 4px; line-height: 1.5; }

.dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; font-size: 12px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; color: #26303d; font-variant-numeric: tabular-nums; }

.section-t {
  font-size: 10.5px; font-weight: 650; letter-spacing: .06em;
  color: var(--ink-4); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px;
}
.section-t:first-child { margin-top: 0; }
.section-t::after { content: ""; flex: 1; height: 1px; background: rgba(19, 32, 58, .07); }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 28px;
  transform: translate(-50%, 14px);
  padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 12px; color: #fff; background: rgba(24, 30, 44, .92);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1360px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; z-index: 70; left: 0; top: 0; width: 236px;
    transform: translateX(-102%); transition: transform .35s var(--spring);
    box-shadow: 30px 0 80px -40px rgba(16, 30, 60, .5);
  }
  .side.is-on { transform: none; }
  #sideBtn { display: grid; }
  .grid-2, .grid-2--even { grid-template-columns: minmax(0, 1fr); }
  .login__wrap { grid-template-columns: minmax(0, 1fr); }
  .login__brand { display: none; }
}
@media (max-width: 820px) {
  .page { padding: 14px 12px 36px; }
  .top { padding: 10px 12px; gap: 8px; }
  .crumb { display: none; }
  .kpis, .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .login__form { padding: 30px 22px; }
  .login__brand { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
#sideBtn { display: none; }

/* ============================================================
   请求日志 / 五步向导 / 详情块
   ------------------------------------------------------------
   这几块只在深水页面出现，单独收在文件末尾，避免和基础组件混在一起。
   ============================================================ */

.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tag--err { background: var(--bad-bg); color: var(--bad); }

/* ---- 筛选区：两行，第二行可折叠 ---- */
.lfilter {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  margin-bottom: 12px;
}
.lfilter__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.din--w { width: 148px; }
.din--s { width: 108px; }

/* ---- 请求详情 ---- */
.rv__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rv__id { font-size: 12px; color: var(--ink-2); background: rgba(120, 132, 152, .1); padding: 4px 9px; border-radius: var(--r-pill); }
.rv__grid { margin-bottom: 4px; }
.rv__sec { margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(19, 32, 58, .06); }
.rv__t { font-size: 11px; font-weight: 650; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 9px; }
.rv__code {
  margin: 0; padding: 11px 13px; border-radius: var(--r-md);
  background: rgba(19, 32, 58, .045); color: var(--ink-2);
  font-family: var(--mono); font-size: 11px; line-height: 1.65;
  max-height: 210px; overflow: auto; white-space: pre;
}
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; }
.kv { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; min-width: 0; }
.kv__k { flex: none; width: 84px; font-size: 11px; color: var(--ink-3); }
.kv__v { font-size: 11.5px; font-weight: 550; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

.mtab { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mtab th, .mtab td { padding: 6px 8px; border-bottom: 1px solid rgba(19, 32, 58, .055); text-align: left; }
.mtab th { font-size: 10px; font-weight: 600; color: var(--ink-4); letter-spacing: .03em; }
.mtab td.r, .mtab th.r { text-align: right; font-variant-numeric: tabular-nums; }
.mtab .real { color: var(--brand); }

.note {
  padding: 9px 11px; border-radius: var(--r-md);
  background: rgba(10, 132, 255, .055);
  font-size: 11px; line-height: 1.65; color: var(--ink-2);
}
.note b { color: var(--ink); }

/* ---- 五步向导 ---- */
.wiz__bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.wiz__step {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 6px; border-radius: var(--r-pill);
  background: rgba(120, 132, 152, .08); color: var(--ink-3);
  font-size: 11px; transition: background .2s, color .2s;
}
/* 步骤条从 <div> 换成了 <button>（要可点跳转），得抹掉浏览器默认外观，
   否则会多出一圈灰边和不同字体 */
.wiz__step { border: 0; margin: 0; font-family: inherit; line-height: 1.2; }
.wiz__step:not(.is-on):not(.is-done) { cursor: pointer; }
.wiz__step:not(.is-on):hover { background: rgba(120, 132, 152, .16); color: var(--ink-2); }
.wiz__step:focus-visible { outline: 2px solid rgba(10, 132, 255, .5); outline-offset: 2px; }
.wiz__step.is-on { background: rgba(10, 132, 255, .12); color: #0a6ad8; font-weight: 600; }
.wiz__step.is-done { background: rgba(52, 199, 89, .12); color: var(--ok); }
.wiz__n {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); font-size: 9.5px; font-weight: 700;
}
.wiz__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.wiz__head b { font-size: 13.5px; }
.wiz__head span { font-size: 11px; color: var(--ink-4); }
.wiz__body { min-height: 200px; }
.wiz__err { margin-top: 10px; font-size: 11.5px; color: var(--bad); min-height: 16px; }
.wiz__idx { font-size: 11px; color: var(--ink-4); }

/* ---- 多选与确认 ---- */
.chkbox { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0; }
.chk {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(19, 32, 58, .08);
  font-size: 11.5px; cursor: pointer;
}
.chk input { accent-color: var(--brand); width: 13px; height: 13px; }
.chk:has(input:checked) { border-color: rgba(10, 132, 255, .4); background: rgba(10, 132, 255, .07); }
.confirm { display: flex; flex-direction: column; gap: 2px; }
.confirm .kv { border-bottom: 1px solid rgba(19, 32, 58, .05); padding: 8px 0; }
.confirm .kv__k { width: 96px; }

@media (max-width: 900px) {
  .kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv-grid { grid-template-columns: minmax(0, 1fr); }
  .din--w, .din--s { width: 100%; }
}

/* 模型接入配置行 */
.connrow { display: grid; grid-template-columns: 1fr 1fr 60px 72px; gap: 8px; align-items: center; margin-bottom: 7px; }
.connrow .input { height: 34px; font-size: 12px; }
@media (max-width: 900px) { .connrow { grid-template-columns: minmax(0, 1fr) 64px; } }

/* 会话探测期间不显示登录卡，避免闪一下又跳走 */
#login[data-probing] { opacity: 0; pointer-events: none; }

/* ============================================================
   启动态
   ------------------------------------------------------------
   已登录时刷新页面，若先画登录表单再隐藏，中间那一下就是闪屏。
   先给一个品牌加载态，判定完再决定进控制台还是留登录页。
   ============================================================ */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--bg);
}
.boot[hidden] { display: none; }
.boot__mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6); color: #fff;
  box-shadow: 0 14px 32px -14px rgba(10, 132, 255, .72);
  animation: bootPulse 1.6s ease-in-out infinite;
}
.boot__mark svg { width: 24px; height: 24px; }
.boot__t { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.boot__bar { width: 132px; height: 3px; border-radius: 999px; background: rgba(19, 32, 58, .08); overflow: hidden; }
.boot__bar i {
  display: block; width: 38%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #0a84ff, #5e5ce6);
  animation: bootSlide 1.15s ease-in-out infinite;
}
@keyframes bootPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes bootSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }

/* 登录层用 hidden 控制显隐，别被 .login 的 display 覆盖 */
.login[hidden] { display: none; }

/* ============================================================
   台账内嵌
   ------------------------------------------------------------
   台账页在控制台里用 iframe 打开：整页跳转会重新加载网关，
   必然经历"HTML 先画登录页 → JS 再隐藏"，看起来就是闪一下登录。
   ============================================================ */
.ledger-embed {
  display: block; width: 100%;
  height: calc(100dvh - 114px);
  min-height: 560px;
  border: 0; border-radius: var(--r-lg);
  background: transparent;
}
@media (max-width: 820px) {
  .ledger-embed { height: calc(100dvh - 96px); border-radius: var(--r-md); }
}

/* ============================================================
   卡片扫光（暖色）
   ------------------------------------------------------------
   hover 时一道暖金色的光斜着扫过，模拟阳光掠过玻璃。
   只给 KPI 卡和台账卡片用：大面板（表格容器）不加 ——
   一条光带横过大面积浅色区，看着像污渍而不是光。
   ============================================================ */
/* ============================================================
   卡片扫光（2026-11-14 重做，对齐知识库文件夹的那道「扫过的光」）
   ------------------------------------------------------------
   参考实现：assets/lib-docs.css 的 .foldcard.is-on::after + foldSweep
   —— 一条窄而亮的白棱（45%~52%）压着一层宽而柔的辉光，105° 斜切，
   0.9s 从左下扫到右上，首尾淡入淡出。

   上一版（暖金、transition 驱动）被嫌弃的原因，逐条改掉：
     1) 暖金 #ffcd8a 在冷白 + 品牌蓝的界面上显脏 → 改「白棱 + 淡蓝辉光」；
     2) transition 驱动，鼠标中途移开会看到光**倒着退回去** → 改 keyframes
        一次性播完，配合 JS 的 .is-sweeping（animationend 再摘掉）；
     3) 1.7s 像慢动作 → 0.9s，后来再放慢到 1.2s（0.9 × 4/3，
        速度减到原来的 3/4）；inset 从 -30% -14% 收到 -1px，不再从圆角外漏光；
     4) 只有两层柔光没有硬边，静止看像一块斑 → 保留参考里那条 4% 宽的白棱。
   ============================================================ */
.kpi, .pcard, .hcard { position: relative; }
/* 扫光要贴着圆角裁掉：pcard / hcard 原来没裁切，光会扫到卡片外面去 */
.pcard, .hcard { overflow: hidden; }

.kpi::after,
.pcard::after,
.hcard::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  /* 两层叠加：窄白棱给方向，宽淡蓝给体积（纯白扫在白卡上等于没扫） */
  background:
    linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .94) 48%, transparent 52%),
    linear-gradient(105deg, transparent 30%, rgba(86, 150, 255, .16) 40%, rgba(86, 150, 255, .16) 58%, transparent 70%);
  transform: translateX(-135%) skewX(-8deg);
  opacity: 0;
}

.kpi.is-sweeping::after,
.pcard.is-sweeping::after,
.hcard.is-sweeping::after {
  animation: cardSweep 1.2s cubic-bezier(.32, .68, .3, 1) 1;
}

@keyframes cardSweep {
  0%   { transform: translateX(-135%) skewX(-8deg); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(135%) skewX(-8deg); opacity: 0; }
}

/* 放大态 / 拖拽中的卡片不扫：尺寸还在变，光会跟着跳 */
.pcard.is-open::after,
.pcard.is-lift::after,
.pcard.is-animating::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .kpi::after, .pcard::after, .hcard::after { display: none; }
}

/* ============================================================
   操作层：确认弹层 / 角色切换 / 无权限态
   ============================================================ */
.cfm { position: fixed; inset: 0; z-index: 400; display: none; }
.cfm.is-on { display: grid; place-items: center; }
.cfm__mask {
  position: absolute; inset: 0;
  background: rgba(12, 20, 36, .38);
  animation: cfmFade .18s ease;
}
.cfm__box {
  position: relative;
  width: min(380px, 90vw);
  padding: 24px 24px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(16, 30, 60, .5);
  text-align: center;
  animation: cfmPop .22s var(--spring);
}
.cfm__ic {
  width: 42px; height: 42px; margin: 0 auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 132, 255, .1); color: var(--brand);
}
.cfm__ic.is-danger { background: rgba(255, 59, 48, .1); color: var(--bad); }
.cfm__ic svg { width: 22px; height: 22px; }
.cfm__t { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.cfm__s { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); margin-bottom: 18px; }
.cfm__ft { display: flex; gap: 10px; }
.cfm__ft .btn { flex: 1; justify-content: center; }
.btn--danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn--danger:hover { filter: brightness(1.06); }
@keyframes cfmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfmPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.rolesel {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 8px 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(19, 32, 58, .08);
  color: var(--ink-2);
}
.rolesel select {
  border: 0; background: none; font: inherit; font-size: 11.5px;
  color: var(--ink-2); outline: none; cursor: pointer;
}
.rolesel svg { color: var(--ink-3); flex: none; }

.btn.is-denied { opacity: .4; cursor: not-allowed; }
.btn.is-denied:hover { filter: none; }

/* 详情里的关联对象：点一下跳到对应模块 */
.link {
  color: var(--brand); text-decoration: none; cursor: pointer;
  border-bottom: 1px dashed rgba(10, 132, 255, .38);
  transition: border-color .16s, color .16s;
}
.link:hover { border-bottom-style: solid; border-bottom-color: var(--brand); }

/* ============================================================
   模型授权：可搜索的结构化列表
   ------------------------------------------------------------
   胶囊墙能选，但看不出「这个 id 是哪家、卖几折」，模型一多就
   没法核对。改成四列表格 + 三字段搜索，勾选状态与旧版一致
   （仍是 input[data-multi]，F.syncMulti 不用改）。
   ============================================================ */
.mpick__sum {
  margin-left: 8px; font-size: 11px; font-weight: 500;
  color: var(--ink-3); letter-spacing: .01em;
}
.mpick {
  border: 1px solid rgba(19, 32, 58, .09);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.mpick__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(248, 250, 253, .96), rgba(244, 247, 252, .92));
  border-bottom: 1px solid rgba(19, 32, 58, .07);
}
.mpick__ico { display: inline-flex; color: var(--ink-4); flex: none; }
.mpick__q {
  flex: 1 1 auto; min-width: 0; height: 32px;
  padding: 0 10px 0 8px;
  border: 0; outline: 0; background: transparent;
  font-family: var(--font); font-size: 12.5px; color: var(--ink);
}
.mpick__q::placeholder { color: var(--ink-4); }
.mpick__q::-webkit-search-cancel-button { cursor: pointer; opacity: .5; }
.mpick__act {
  flex: none; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(19, 32, 58, .1);
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2); font-size: 11.5px; font-family: var(--font);
  cursor: pointer; transition: color .16s, border-color .16s, background .16s;
}
.mpick__act:hover { color: var(--brand); border-color: rgba(10, 132, 255, .4); background: rgba(10, 132, 255, .06); }

.mpick__head,
.mpick__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .8fr) 76px;
  align-items: center; gap: 8px;
  padding: 0 12px;
}
.mpick__head {
  height: 30px; font-size: 11px; color: var(--ink-3);
  background: rgba(247, 249, 252, .7);
  border-bottom: 1px solid rgba(19, 32, 58, .06);
}
.mpick__rt { text-align: right; }
.mpick__list { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.mpick__list::-webkit-scrollbar { width: 8px; }
.mpick__list::-webkit-scrollbar-thumb { background: rgba(19, 32, 58, .14); border-radius: 8px; }
.mpick__row {
  min-height: 40px; cursor: pointer;
  border-bottom: 1px solid rgba(19, 32, 58, .045);
  transition: background .14s;
}
.mpick__row:last-child { border-bottom: 0; }
.mpick__row:hover { background: rgba(10, 132, 255, .045); }
.mpick__row:has(input:checked) { background: rgba(10, 132, 255, .075); }
.mpick__row[hidden] { display: none; }
.mpick__ck { display: inline-flex; align-items: center; }
.mpick__ck input { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }
.mpick__name {
  font-size: 13px; font-weight: 550; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mpick__id code {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  background: none; padding: 0; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.mpick__pv {
  font-size: 12px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mpick__disc {
  justify-self: end; font-size: 11.5px; font-weight: 600;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: rgba(19, 32, 58, .055); color: var(--ink-3);
}
.mpick__disc--ok { background: var(--ok-bg); color: var(--ok); }
.mpick__disc--warn { background: var(--warn-bg); color: var(--warn); }
.mpick__disc--mut { background: rgba(19, 32, 58, .05); color: var(--ink-3); }
.mpick__empty { padding: 18px; text-align: center; font-size: 12px; color: var(--ink-3); }
.mpick__empty--box {
  border: 1px dashed rgba(19, 32, 58, .14); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .6);
}
@media (max-width: 720px) {
  .mpick__head, .mpick__row { grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1fr) 66px; }
  .mpick__head span:nth-child(4), .mpick__pv { display: none; }
}

/* 只读场景里的模型 ID（详情页用它，不套 .mpick 结构） */
.ro-id {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  letter-spacing: -.01em;
}

/* 抽屉底部：取消/关闭在左、保存在右，整体靠左。
   原来用一个 flex:1 的 .sp 把按钮顶到右边，保存按钮还常常占满整行，
   一屏里最显眼的是按钮而不是表单内容。 */
.drawer__ft .sp { display: none; }
.drawer__ft { justify-content: flex-start; }

/* 表单里的分组标题（配额 / 限流这种两组参数放一页时用） */
.grp__t {
  display: block; margin: 10px 0 2px;
  font-size: 13px; font-weight: 650; letter-spacing: .01em;
  color: var(--ink);
}

/* 搜索框：之前是透明底 + 占位符，一眼看不出来能输入。
   现在给它实体白底、描边和焦点环，和其他输入框一致。 */
.mpick__q {
  height: 36px; padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(19, 32, 58, .16);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color .16s, box-shadow .16s;
}
.mpick__q:hover { border-color: rgba(19, 32, 58, .26); }
.mpick__q:focus {
  outline: none;
  border-color: rgba(10, 132, 255, .55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .12);
}
.mpick__ico { color: var(--ink-3); }

/* 模型行的「接通测试」圆点：默认空心，点一下转圈，通了变绿并画对勾 */
.mtest {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px;
  border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(19, 32, 58, .22);
  background: rgba(255, 255, 255, .8);
  transition: border-color .18s, background .18s, transform .18s;
}
.mtest:hover { border-color: rgba(10, 132, 255, .55); transform: scale(1.08); }
.mtest svg { width: 10px; height: 10px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.mtest svg path { stroke: rgba(19, 32, 58, .45); stroke-dasharray: 14; stroke-dashoffset: 14; }

.mtest.is-loading { border-color: rgba(10, 132, 255, .45); border-top-color: transparent; animation: mtest-spin .7s linear infinite; }
@keyframes mtest-spin { to { transform: rotate(360deg); } }

.mtest.is-ok { border-color: #34c759; background: rgba(52, 199, 89, .14); }
.mtest.is-ok svg { opacity: 1; }
.mtest.is-ok svg path { stroke: #1b8a3d; animation: mtest-tick .34s cubic-bezier(.4, .1, .3, 1) .05s forwards; }
@keyframes mtest-tick { to { stroke-dashoffset: 0; } }

/* 未接通：灰圈 + 灰对勾（不播放动画，和"通过"区分开） */
.mtest.is-fail { border-color: rgba(19, 32, 58, .2); background: rgba(19, 32, 58, .06); }
.mtest.is-fail svg { opacity: 1; }
.mtest.is-fail svg path { stroke-dashoffset: 0; stroke: rgba(19, 32, 58, .38); }

/* 第三种状态：地址通但无法验证 Key（上游没有 /models 列表接口）。
   不能给绿勾（会让人以为已经配好），也不该判死（地址是对的），标黄最诚实。 */
.mtest.is-warn { border-color: #ff9f0a; background: rgba(255, 159, 10, .16); }
.mtest.is-warn svg { opacity: 1; }
.mtest.is-warn svg path { stroke-dashoffset: 0; stroke: #b26a00; }


/* ============================================================
   滚动条（全局）
   ------------------------------------------------------------
   轨道改成白色圆角，弧度与灰色滑块完全一致（同为 99px 药丸形）；
   滑块两侧留 2px 白边做内缩，否则贴着轨道边会显得比轨道还粗。
   Firefox 用 scrollbar-color 近似表达。
   ============================================================ */
/* scrollbar-width / scrollbar-color 是继承属性：只要在 html 上写了非 auto 值，
   Chromium 就会整体切到标准渲染路径，把下面 12px 的自定义轨道和滑块全部作废
   （连子元素 .nav 的 ::-webkit-scrollbar 也一起失效）。所以标准属性只留给 Firefox。 */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(120, 132, 152, .45) #fff; }
}
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: #fff; border-radius: 99px; }
html::-webkit-scrollbar-thumb {
  background: rgba(120, 132, 152, .45);
  border: 2px solid #fff;
  border-radius: 99px;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(120, 132, 152, .68); background-clip: padding-box; }
html::-webkit-scrollbar-corner { background: #fff; }
/* ===== 登录方式切换（密码 / 验证码 / 注册） ===== */
.login__tabs{display:flex;gap:4px;background:#f2f4f7;border-radius:10px;padding:4px;margin-bottom:14px}
.login__tab{flex:1;appearance:none;border:0;background:transparent;border-radius:7px;padding:7px 0;font:inherit;font-size:12.5px;color:#5b636e;cursor:pointer;transition:all .15s}
.login__tab:hover{color:#111}
.login__tab.is-on{background:#fff;color:#111;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.field--code{position:relative;display:block}
.field--code .input{padding-right:118px}
.field__code{position:absolute;right:6px;bottom:8.5px;display:inline-flex;align-items:center;justify-content:center;height:27px;appearance:none;border:0;background:#eef2ff;color:#3b5bdb;font:inherit;font-size:11.5px;font-weight:600;line-height:1;padding:0 11px;border-radius:7px;cursor:pointer;white-space:nowrap}
.field__code:hover{background:#e2e9ff}
.field__code:disabled{opacity:.5;cursor:default}

/* ===== 模型「测连通」按钮：刻意做成带文字的胶囊，不要圆圈 =====
   圆圈会被误认为单选/多选；带插头图标 + “测连通”三个字一眼就知道是动作 */
/* ===== 模型「测连通」：链接图标（不带文字、不是圆圈） =====
   放在状态后面，margin-left: 1em = 空开一个汉字的位置。
   图标状态：默认淡蓝 / 测试中脉动 / 成功绿 / 失败红 */
.stcell{display:inline-flex;align-items:center;gap:1em}
.mlink{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;padding:0;flex:none;
  border:1px solid #d5e4ff;border-radius:7px;background:#eef4ff;color:#2f6feb;
  cursor:pointer;transition:all .16s;
}
.mlink svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mlink:hover{background:#e0ebff;border-color:#9fc2ff;color:#1a5bd6;transform:translateY(-1px);box-shadow:0 4px 10px -6px rgba(47,111,235,.55)}
.mlink:active{transform:translateY(0)}
.mlink.is-loading{background:#e8f0ff;border-color:#9fc2ff;color:#2f6feb;animation:mlinkPulse 1s ease-in-out infinite;cursor:default}
.mlink.is-ok{background:#e9fbf0;border-color:#8fd6ab;color:#0f8a45}
.mlink.is-fail{background:#fdf1f0;border-color:#f0b3ae;color:#c0261a}
@keyframes mlinkPulse{0%,100%{opacity:1}50%{opacity:.45}}

/* ===== 成功提示：白色卡片 + 绿色对勾（1 秒画完） ===== */
.toast.toast--card{
  display:flex;align-items:center;gap:11px;
  padding:12px 20px 12px 13px;border-radius:14px;
  background:#fff;color:#1f2633;font-size:13px;
  box-shadow:0 20px 46px -20px rgba(16,30,60,.4),0 0 0 1px rgba(19,32,58,.07);
  backdrop-filter:none;
}
.toast__tx{display:flex;flex-direction:column;line-height:1.3;text-align:left}
.toast__tx b{font-size:13.5px;font-weight:600;letter-spacing:.2px;color:#141a24}
.toast__tx i{font-size:11px;font-style:normal;color:#7b8494;margin-top:3px;max-width:min(460px,62vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 卡片整体是 pointer-events:none（不挡页面操作），只在链接这一小块开口 */
.toast__link{pointer-events:auto;color:#0a84ff;font-weight:600;font-size:13px;text-decoration:none;white-space:nowrap;cursor:pointer;margin-left:9px}
.toast__link:hover{text-decoration:underline}
.toast.toast--card{max-width:calc(100vw - 32px)}
.toast .tick{width:26px;height:26px;flex:none;display:grid;place-items:center;border-radius:50%;background:#22c55e;box-shadow:0 6px 14px -6px rgba(34,197,94,.8)}
.toast .tick svg{width:26px;height:26px;display:block}
.toast .tick circle{fill:#22c55e;stroke:none}
.toast .tick path{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24}
.toast.is-play .tick{animation:tickPop 1s cubic-bezier(.2,.9,.25,1.15) both}
.toast.is-play .tick path{animation:tickDraw 1s ease-out both}
@keyframes tickPop{0%{transform:scale(.45);opacity:0}40%{transform:scale(1.1);opacity:1}70%{transform:scale(1)}100%{transform:scale(1);opacity:1}}
@keyframes tickDraw{0%,20%{stroke-dashoffset:24}100%{stroke-dashoffset:0}}


/* ============================================================
   全局修正 2026-11-13
   ------------------------------------------------------------
   1) 含表格的 panel：白底铺满整块 + 圆角由 panel 裁切
   2) 按钮悬停：品牌蓝/危险红不再被通用 .btn:hover 的白色压掉
   3) 详情抽屉：主副标题换成更重的展示字重，主副同行
   ============================================================ */

/* ---------- 1) 表格面板：白底铺满 ---------- */
.panel:has(.tbl-wrap) {
  background: #fff;
  /* 白底 + 白描边在浅灰页面上会「糊」在一起，换一条极浅的冷灰边 */
  border-color: rgba(19, 32, 58, .07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--sh-2);
}
/* 精确到「直接装着表格的那个 panel__bd」：同 panel 里其他内容块的内边距不受影响 */
.panel > .panel__bd:has(> .tbl-wrap) { padding: 0 !important; }
.panel > .panel__bd > .tbl-wrap { border-radius: 0; }
.panel:has(.tbl-wrap) .tbl th { background: #fbfcfe; backdrop-filter: none; }
.panel:has(.tbl-wrap) .tbl tfoot td { background: #fbfcfe; }
.panel:has(.tbl-wrap) .tbl tbody tr:hover { background: #f4f8ff; }
.panel:has(.tbl-wrap) .pager { padding: 10px 16px; }
/* 老浏览器（不支持 :has）兜底：至少让表头不透出玻璃底 */
@supports not selector(:has(*)) {
  .tbl th, .tbl tfoot td { background: #fbfcfe; }
}

/* ---------- 2) 按钮 ---------- */
/* 次级按钮：白面板上要有可见的底，否则像没渲染 */
.btn {
  background: #f5f7fb;
  border: 1px solid rgba(19, 32, 58, .09);
  color: var(--ink-2);
}
.btn:hover { background: #eaf1fb; border-color: rgba(10, 132, 255, .3); color: var(--ink); }

/* 主按钮：hover 保持蓝底（原规则被 .btn:hover 的白色覆盖，白字直接消失） */
.btn--brand,
.btn--brand:hover,
.btn--brand:focus-visible {
  color: #fff;
  background: linear-gradient(150deg, #4aabff, #0a84ff 60%, #5d8aff);
  border-color: transparent;
  box-shadow: 0 10px 24px -12px rgba(10, 132, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--brand:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--brand:active { transform: scale(.97); }

/* 危险按钮：同理保持红底 */
.btn--danger, .btn--danger:hover {
  color: #fff;
  background: var(--bad);
  border-color: transparent;
}
.btn--danger:hover { background: #d0301f; filter: none; }

/* 分页 / 图标按钮：白底上 hover 也要看得见 */
.pager__b { background: #f5f7fb; border-color: rgba(19, 32, 58, .09); }
.pager__b:hover { background: #eaf1fb; border-color: rgba(10, 132, 255, .35); color: var(--brand); }
.iconbtn:hover { background: rgba(19, 32, 58, .07); color: var(--ink); }

/* ---------- 3) 详情抽屉：主副标题 ---------- */
/* 参考视觉：极粗的标题 + 浅灰副标题，同一行、留一个字左右的间距 */
.drawer__hd > div:first-child {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0 .72em; min-width: 0;
}
.drawer__t {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; letter-spacing: -.03em;
  color: #070c14; line-height: 1.3;
}
.drawer__s {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 400; letter-spacing: .01em;
  color: #a6afbd; margin-top: 0;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* 角色选择胶囊：白底上补一层浅灰，否则像一个透明框 */
.rolesel { background: #f5f7fb; border-color: rgba(19, 32, 58, .09); }
.rolesel:hover { background: #eaf1fb; }

/* ============================================================
   详情抽屉版式（2026-11-13）
   原来每个分区只靠一条细线分隔，字段是「标签定宽 84px + 值」挤成两列，
   一屏看下去全是同级信息，主次不分。改成：分区卡片 + 标签在上、值在下。
   ============================================================ */
.drawer__bd { padding: 16px 18px 24px; }

.rv__sec {
  margin-top: 12px;
  padding: 13px 15px 6px;
  border: 1px solid rgba(19, 32, 58, .06);
  border-top: 1px solid rgba(19, 32, 58, .06);
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfdff, #f7f9fd);
}
.rv__t {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 13px; font-weight: 650;
  color: var(--ink); letter-spacing: .01em;
}
.rv__t::before {
  content: ""; width: 3px; height: 12px; flex: none; border-radius: 2px;
  background: linear-gradient(180deg, #4aabff, #0a84ff);
}
.rv__t .rv__n { margin-left: auto; font-weight: 500; font-size: 11px; color: var(--ink-4); }

.kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.kv {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 0 9px;
}
.kv__k { width: auto; font-size: 10.5px; font-weight: 500; color: var(--ink-4); letter-spacing: .02em; }
.kv__v { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }

/* 详情里的表：表头做成一块浅底，行有 hover，不再是一排细线 */
.mtab { border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.mtab th {
  padding: 7px 10px; font-size: 10px; font-weight: 600;
  color: var(--ink-4); background: rgba(19, 32, 58, .035);
  border-bottom: 0;
}
.mtab th:first-child { border-radius: 9px 0 0 9px; }
.mtab th:last-child { border-radius: 0 9px 9px 0; }
.mtab td { padding: 8px 10px; border-bottom: 1px solid rgba(19, 32, 58, .05); }
.mtab tbody tr:hover td { background: rgba(10, 132, 255, .04); }
.mtab tbody tr:last-child td { border-bottom: 0; }

/* 详情里的 KPI 卡再收紧一点，别把空间都吃掉 */
.rv__grid .kpis { gap: 8px; }
.rv__grid .kpi { padding: 12px 13px; }

/* 列表首列内缩：原来紧贴卡片边缘，读起来很挤 */
.tbl th:first-child, .tbl td:first-child { padding-left: 26px; }
/* 末列（操作）也留出同样的呼吸位 */
.tbl th:last-child, .tbl td:last-child { padding-right: 22px; }

/* ============================================================
   供应商接入向导
   ------------------------------------------------------------
   接上游这件事的真实复杂度不在表单字段多，而在「每家地址和协议都不一样」。
   所以先让用户选厂商，地址 / 协议 / 鉴权由模板带出来，
   首屏只留「显示名 + Key + 折扣」三个需要人填的东西。
   ============================================================ */
.pvx__hd { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.pvx__t { font-size: 13px; font-weight: 650; color: var(--ink); }
.pvx__s { font-size: 11.5px; color: var(--ink-3); }
.pvx__pick {
  font-size: 11px; line-height: 18px; padding: 0 9px; border-radius: 99px;
  background: rgba(10, 132, 255, .1); color: #0a63c9; font-weight: 600;
}
.pvx__pick:empty { display: none; }

.pvx__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pvx__g { grid-column: 1 / -1; font-size: 11px; color: var(--ink-4); margin: 4px 0 -2px; }
.pvx__i {
  text-align: left; padding: 9px 11px 8px; border-radius: 12px; font: inherit;
  border: 1px solid rgba(19, 32, 58, .09); background: rgba(255, 255, 255, .62);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  min-width: 0;
}
.pvx__i:hover { border-color: rgba(10, 132, 255, .34); background: #fff; transform: translateY(-1px); }
.pvx__i.is-on {
  border-color: #0a84ff; background: #fff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, .16), 0 8px 18px -14px rgba(10, 132, 255, .9);
}
.pvx__n { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvx__m { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 协议标签：OpenAI 兼容是常态，用灰的不抢眼；
   特殊协议（Anthropic / Gemini / Azure / 本地）才上蓝色，方便一眼挑出来 */
.pvx__k {
  display: inline-block; margin-top: 6px; font-size: 9.5px; line-height: 15px; padding: 0 6px;
  border-radius: 99px; background: rgba(120, 132, 152, .13); color: var(--ink-3); font-weight: 600;
}
.pvx__k--x { background: rgba(10, 132, 255, .1); color: #0a63c9; }
.pvx__i.is-local .pvx__k--x { background: rgba(94, 92, 230, .12); color: #4b49c9; }
/* 有无标签的卡片保持同高，网格才不会参差 */
.pvx__i { min-height: 64px; }

.pvx__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pvx__f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pvx__f--full { grid-column: 1 / -1; }
.pvx__l { font-size: 11.5px; color: var(--ink-3); }
.pvx__in {
  height: 36px; width: 100%; padding: 0 11px; border-radius: 10px;
  border: 1px solid rgba(19, 32, 58, .11); background: rgba(255, 255, 255, .88);
  font: inherit; font-size: 12.5px; color: var(--ink);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.pvx__in::placeholder { color: var(--ink-4); }
.pvx__in:focus { outline: none; border-color: rgba(10, 132, 255, .55); background: #fff; box-shadow: 0 0 0 3px rgba(10, 132, 255, .12); }
select.pvx__in { cursor: pointer; }
.pvx__tip { font-size: 10.5px; color: var(--ink-4); line-height: 1.5; }
.pvx__tip b { color: var(--ink-3); font-weight: 600; }

.pvx__adv { margin-top: 14px; border-top: 1px dashed rgba(19, 32, 58, .1); padding-top: 12px; }
.pvx__adv > summary {
  cursor: pointer; font-size: 13px; font-weight: 650; color: var(--ink); list-style: none;
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.pvx__adv > summary::-webkit-details-marker { display: none; }
.pvx__adv > summary::before {
  content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); transition: transform .18s; margin-left: 2px; flex: none;
}
.pvx__adv[open] > summary::before { transform: rotate(45deg); }
.pvx__adv > summary:hover { color: #0a63c9; }
.pvx__adv .pvx__form { margin-top: 12px; }

@media (max-width: 900px) {
  .pvx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pvx__form { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   路由规则：一个对外模型名一张卡
   ------------------------------------------------------------
   平铺表格看不出「一个名字下挂了几家上游、怎么分流」，
   所以改成卡片 + 行：顺位 → 是谁 → 备用标识 → 占比条 → 操作。
   ============================================================ */
.rt-card { margin-bottom: 10px; }
.rt-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 2px; border-top: 1px solid rgba(19, 32, 58, .05);
}
.rt-row:first-child { border-top: 0; }
.rt-row.is-off { opacity: .52; }
.rt-ord {
  width: 20px; height: 20px; flex: none; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  background: rgba(120, 132, 152, .1);
}
.rt-who { min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.rt-who b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.rt-who .mono { font-size: 10.5px; color: var(--ink-4); }
.rt-flag {
  font-size: 10px; line-height: 17px; padding: 0 8px; border-radius: 99px; flex: none;
  background: rgba(120, 132, 152, .12); color: var(--ink-3); font-weight: 600;
}
.rt-flag.is-main { background: rgba(10, 132, 255, .1); color: #0a63c9; }
.rt-bar {
  flex: 1; min-width: 56px; height: 6px; border-radius: 99px;
  background: rgba(120, 132, 152, .12); overflow: hidden;
}
.rt-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4aabff, #0a84ff); }
.rt-pct { width: 40px; flex: none; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rt-act { display: flex; gap: 6px; flex: none; }
.rt-tip {
  margin-top: 8px; padding: 7px 10px; border-radius: 10px;
  font-size: 11px; color: #9a5b00; background: rgba(255, 159, 10, .09);
}

/* ============================================================
   明文 API Key 弹窗（一次性）
   ------------------------------------------------------------
   对应主流云厂商的 key 弹窗：大标题 + 说明 + 明文框 + 黑色复制按钮 + 底部提示。
   复用 .cfm 的遮罩与定位，只是内容更宽。
   ============================================================ */
/* .cfm__box 是给确认弹窗用的，文字居中；key 弹窗要按文档式左对齐 */
.cfm__box:has(.okx__t) { text-align: left; }
.okx__t { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; color: var(--ink); }
.okx__d { font-size: 13px; line-height: 1.65; color: var(--ink-3); margin: 0 0 16px; }
.okx__row { display: flex; gap: 8px; align-items: center; }
.okx__in {
  flex: 1; min-width: 0; height: 46px; padding: 0 15px; border-radius: 13px;
  border: 1px solid rgba(19, 32, 58, .11); background: #f6f8fc;
  font-size: 12.5px; color: var(--ink); letter-spacing: .01em;
}
.okx__in:focus { outline: 2px solid rgba(10, 132, 255, .22); outline-offset: 1px; background: #fff; }
.okx__copy {
  height: 46px; padding: 0 20px; flex: none; border: 0; border-radius: 13px;
  background: #111820; color: #fff; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: background .16s, transform .16s;
}
.okx__copy:hover { background: #000; }
.okx__copy:active { transform: scale(.97); }
.okx__copy.is-done { background: #1f8f4e; cursor: default; }
.okx__tip { margin: 15px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-4); }
.okx__ft { margin-top: 18px; display: flex; justify-content: flex-end; }

/* ============================================================
   定价卡片墙
   ------------------------------------------------------------
   一张卡=一个模型。上半部分是「我多少钱进的」（刊例价→折扣→进价），
   下半部分是「我多少钱卖的」（折扣→售价→毛利），两段用一条实线断开。
   毛利用颜色区分：亏本红、薄利橙、健康绿 —— 扫一眼就知道哪些不赚钱。
   ============================================================ */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.pcard{background:#fff;border:1px solid rgba(19,32,58,.08);border-radius:14px;padding:14px 16px 10px;display:flex;flex-direction:column;transition:box-shadow .15s,border-color .15s}
.pcard:hover{box-shadow:0 6px 20px rgba(19,32,58,.09);border-color:rgba(19,32,58,.16)}
.pcard__hd{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px}
.pcard__id{flex:1;min-width:0}
.pcard__id b{display:block;font-size:13.5px;font-weight:650;color:var(--ink-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard__id span{display:block;font-size:11px;color:var(--ink-4);margin-top:2px}
.pcard__tag{flex:none;font-size:10.5px;color:var(--ink-3);background:rgba(19,32,58,.05);border-radius:6px;padding:2px 7px}
.pcard__body{border-top:1px solid rgba(19,32,58,.06);padding-top:2px}
.prow{display:flex;align-items:baseline;gap:8px;padding:7px 0;border-bottom:1px dashed rgba(19,32,58,.06)}
.prow:last-child{border-bottom:0}
.prow__k{flex:1;font-size:11.5px;color:var(--ink-3)}
.prow__k i{font-style:normal;font-size:10px;color:var(--ink-4);margin-left:5px}
.prow__v{font-size:12.5px;font-weight:600;color:var(--ink-1);font-variant-numeric:tabular-nums}
.prow__u{width:78px;text-align:right;font-size:10.5px;color:var(--ink-4)}
.prow--sale .prow__k{color:var(--ink-2)}
.prow--sale .prow__v{color:var(--brand)}
.prow__u.is-ok{color:var(--ok);font-weight:650}
.prow__u.is-mid{color:#ff9f0a;font-weight:650}
.prow__u.is-bad{color:var(--bad);font-weight:650}
.pcard__ft{display:flex;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(19,32,58,.06)}
.pcard__meta{flex:1;font-size:10.5px;color:var(--ink-4)}

/* 定价卡片 v2：进价 / 售价作为主数字，刊例价与折扣降级为来源说明。
   之前三行字号一样大，眼睛分不出哪个是我付的钱、哪个是我收的钱。 */
.pgrid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
.pcard{padding:15px 17px 12px}
.pcard__hd{align-items:center;margin-bottom:2px}
.pcard__id b{font-size:14px}
.pcard__id span{font-size:10.5px;margin-top:3px}
.pblock{padding:9px 0;border-top:1px solid rgba(19,32,58,.06)}
.pblock__k{display:block;font-size:10.5px;color:var(--ink-4);letter-spacing:.05em;margin-bottom:3px}
.pblock__v{font-size:19px;font-weight:650;letter-spacing:-.3px;color:var(--ink-1);font-variant-numeric:tabular-nums;line-height:1.25}
.pblock__row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pblock__m{font-size:10.5px;color:var(--ink-4);margin-top:4px}
.pblock__m b{color:var(--ink-2);font-weight:600}
.pblock__m i{font-style:normal;color:var(--ink-4)}
.pblock--sale .pblock__v{color:var(--brand)}
.pbadge{font-size:11px;font-weight:650;padding:3px 8px;border-radius:7px;white-space:nowrap}
.pbadge.is-ok{background:rgba(52,199,89,.13);color:#1b8a3d}
.pbadge.is-mid{background:rgba(255,159,10,.15);color:#b26b00}
.pbadge.is-bad{background:rgba(255,59,48,.13);color:#c0261a}
.pcard__ft{display:flex;gap:6px;margin-top:4px;padding-top:10px;border-top:1px solid rgba(19,32,58,.06)}
/* 改价抽屉里的实时试算 */
.pcalc{background:#f7f9fc;border:1px solid rgba(19,32,58,.06);border-radius:12px;padding:2px 14px}
.pcalc__row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px dashed rgba(19,32,58,.07)}
.pcalc__row:last-child{border-bottom:0}
.pcalc__row>span{width:76px;flex:none;font-size:11.5px;color:var(--ink-3)}
.pcalc__row>b{flex:1;font-size:15px;font-weight:650;color:var(--ink-1);font-variant-numeric:tabular-nums}
.pcalc__row>i{font-style:normal;font-size:10.5px;color:var(--ink-4);text-align:right}
.pcalc__row--sum>b{flex:0 0 auto}
/* 卡头右侧：官方刊例价。编辑入口移走后这里放真正要对照的基准价 */
.pcard__list{flex:none;text-align:right;line-height:1.3;white-space:nowrap;padding-left:10px}
.pcard__list b{display:block;font-size:13px;font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.pcard__list i{display:block;font-style:normal;font-size:10px;color:var(--ink-4);margin-top:2px}

/* ============================================================
   客户运营（认证审核 / 组织 / 钱包 / 订单）
   ------------------------------------------------------------
   这几页是后加的，样式单独放一段，避免改动上面已有的表格与卡片规则
   （那些规则被 19 个页面共用，动一个属性常常在别处塌方）。
   命名统一用 biz- 前缀之外的局部件名，都是新增的，不覆盖原样式。
   ============================================================ */

/* ---------- 表格里的双行单元格 ---------- */
.cell-main {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.cell-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 159, 10, .1);
  border: 1px solid rgba(255, 159, 10, .22);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}
.notice b { color: var(--ink); font-weight: 650; white-space: nowrap; }
.notice span { color: var(--ink-2); }
.notice--ok {
  background: rgba(52, 199, 89, .1);
  border-color: rgba(52, 199, 89, .24);
}

/* ---------- 双审状态 chip ---------- */
.vchips { display: flex; gap: 6px; flex-wrap: wrap; }
.vchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(120, 132, 152, .12);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.vchip::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  opacity: .65;
}
.vchip--ok { background: var(--ok-bg); color: var(--ok); }
.vchip--bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- 抽屉里的资料两列 ---------- */
.kv2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(120, 132, 152, .14);
  border-radius: var(--r-md);
  overflow: hidden;
}
.kv2__i {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .72);
  min-width: 0;
}
.kv2__i span { font-size: 11px; color: var(--ink-3); }
.kv2__i b {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 小额打款 ---------- */
.depbox {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255, 159, 10, .1), rgba(255, 149, 0, .04));
  border: 1px solid rgba(255, 159, 10, .22);
}
.depbox__l { font-size: 11.5px; color: var(--ink-3); }
.depbox__v {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 2px 0;
}
.depbox__s { font-size: 11.5px; color: var(--ink-3); max-width: 380px; line-height: 1.5; }
.depbox__act { margin-left: auto; display: flex; gap: 8px; }
.deprow { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.deprow .din { flex: 0 1 220px; }

/* ---------- 归属租户列表 ---------- */
.attlist { display: flex; flex-direction: column; gap: 6px; }
.attlist__i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(120, 132, 152, .14);
  font-size: 12.5px;
  min-width: 0;
}
.attlist__i b { font-weight: 600; color: var(--ink); }
.attlist__i span { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.attlist__i--pick { cursor: pointer; transition: border-color .18s var(--spring), background .18s; }
.attlist__i--pick:hover { border-color: rgba(10, 132, 255, .3); background: rgba(10, 132, 255, .04); }
.attlist__i--pick input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ---------- 抽屉里的紧凑流水 ---------- */
.minitbl { display: flex; flex-direction: column; }
.minitbl__r {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(120, 132, 152, .1);
  font-size: 12px;
  min-width: 0;
}
.minitbl__r:last-child { border-bottom: 0; }
.mt-k { width: 42px; color: var(--ink-3); flex: none; }
.mt-k + b { width: 90px; flex: none; font-variant-numeric: tabular-nums; }
.mt-n { flex: 1 1 auto; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-t { flex: none; color: var(--ink-4); font-size: 11px; }
.minitbl b.pos { color: var(--ok); }
.minitbl b.neg { color: var(--bad); }

/* ---------- 底部按钮排 ---------- */
.rowbtns { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rowbtns .sp { flex: 1 1 auto; }

/* ---------- 工具栏右侧说明 ---------- */
.hintline { font-size: 11.5px; color: var(--ink-3); }
.hintline::before { content: '·'; margin-right: 6px; opacity: .6; }

@media (max-width: 720px) {
  .kv2 { grid-template-columns: minmax(0, 1fr); }
  .depbox { flex-wrap: wrap; }
  .depbox__act { margin-left: 0; }
}

/* ============================================================
   治理观测 · 健康检查（2026-11-14）
   ------------------------------------------------------------
   供应商卡片原来用 auto-fill + minmax(280px)：容器宽 1000px 时会预留
   三列，两家供应商只占两列、右边留一大片空白。这里换 auto-fit，
   卡片直接撑满，同时把「探测」结果按成功/失败分色，不再是一串灰字。
   ============================================================ */
.hgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.hcard {
  display: flex; flex-direction: column;
  padding: 14px 15px 13px;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 58, .07);
  background: #fff;
  box-shadow: var(--sh-1);
  min-width: 0;
}
.hcard__hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hcard__hd b {
  font-size: 12.5px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hcard__key { font-size: 11px; color: var(--ink-4); flex: none; }
.hcard__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin: 13px 0 11px;
}
.hcard__grid i { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-4); }
.hcard__grid b {
  display: block; margin-top: 3px;
  font-size: 17px; font-weight: 650; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.hcard__ft { display: flex; align-items: center; gap: 9px; margin-top: 11px; min-width: 0; }
.hres { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hres__t--ok { color: var(--ok); font-weight: 600; }
.hres__t--bad { color: var(--bad); }
.hnote {
  margin: 13px 0 0; font-size: 11px; line-height: 1.65; color: var(--ink-4);
}
.hnote code { font-size: 10.5px; background: rgba(120, 132, 152, .1); padding: 1px 5px; border-radius: 5px; }

@media (max-width: 720px) {
  .hcard__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 自检三连：一屏三格，窄屏自动折行 */
.hgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hcard__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hcard__note {
  font-size: 12px !important; font-weight: 500 !important;
  color: var(--ink-2); line-height: 1.5;
  white-space: normal;
}
@media (max-width: 980px) {
  .hgrid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* 路由卡片（2026-11-14）：对外模型名旁边补上「这是什么模型、多大上下文、
   按什么计价」。只显示别名时，运维自己也得回模型页查。 */
.rt-spec {
  font-size: 11px; color: var(--ink-2);
  padding: 2px 9px; border-radius: 999px;
  background: rgba(10, 132, 255, .08);
  max-width: 56%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 0 1 auto;
}
.rt-spec.is-bad { background: rgba(255, 59, 48, .1); color: var(--bad); }
/* 右侧那一列同时放「实际分流」和「配置权重」：只显示 50% 时，
   填了 100 的人会以为系统改了他的配置。 */
.rt-pct { width: 66px; line-height: 1.35; }
.rt-pct i {
  display: block; font-style: normal;
  font-size: 10px; color: var(--ink-4); font-variant-numeric: tabular-nums;
}

/* 翻页条上的「每页 N 条」选择器：和分页按钮同一行，不要抢视觉 */
.pager__size {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-4); white-space: nowrap;
}
.pager__size .din { height: 24px; padding: 0 22px 0 8px; font-size: 11.5px; }

/* 没有官方刊例价的模型：右上角用提示替换数字，避免 0.00 被读成「免费」 */
.pcard__nolist { color: var(--warn, #b45309); font-weight: 600; font-size: 12px; }

/* ============================================================
   左下角工具条：两个铃铛 + 锁屏
   ============================================================ */
.side__tools { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.side__tools .tool {
  position: relative; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  color: var(--ink-2); cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.side__tools .tool:hover { background: #fff; color: var(--brand-ink); border-color: rgba(10, 132, 255, .3); }
.side__tools .tool:active { transform: scale(.95); }
.tool__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: linear-gradient(180deg, #ff6b5e, #f5331f);
  color: #fff; font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.side__lock { flex: 1 1 auto; width: auto; }

/* 收件箱里的留言行 */
.fbrow {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(246, 248, 252, .85); border: 1px solid rgba(104, 120, 148, .1);
}
.fbrow__main { flex: 1 1 auto; min-width: 0; }
.fbrow__main b { font-size: 13px; }
.fbrow__main p { margin: 5px 0 0; font-size: 12.6px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }

/* ============================================================
   左下角工具条：三个按钮同高、图标与文字一律居中
   ============================================================ */
.side__tools { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.side__tools .tool {
  position: relative; flex: none;
  width: 32px; height: 32px; border-radius: 11px;
  display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  background: var(--glass-3); color: var(--ink-2);
  cursor: pointer; transition: background .16s, color .16s, transform .16s;
}
.side__tools .tool:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.side__tools .tool:active { transform: scale(.94); }
.side__tools .tool svg { width: 15px; height: 15px; }
.side__tools .tool__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: linear-gradient(180deg, #ff6b5e, #f5331f);
  color: #fff; font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
/* 锁定：外框与两个铃铛同一套尺寸/圆角，内容水平垂直都居中 */
.side__tools .side__lock {
  flex: 1 1 auto; width: auto; height: 32px; margin: 0; padding: 0 10px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, .72);
  background: var(--glass-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.side__tools .side__lock svg { width: 13px; height: 13px; }
.side__tools .side__lock:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }

/* 抽屉里的站内信 */
.inboxsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.inboxsum > div {
  padding: 11px 13px; border-radius: var(--r-md);
  background: rgba(246, 248, 252, .9); border: 1px solid rgba(104, 120, 148, .1);
}
.inboxsum b { display: block; font-size: 20px; font-weight: 720; letter-spacing: -.02em; }
.inboxsum span { font-size: 11.4px; color: var(--ink-3); }

.inboxlist { display: flex; flex-direction: column; gap: 8px; }
.inboxrow {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(104, 120, 148, .1);
  transition: background .16s, border-color .16s;
}
.inboxrow:hover { background: #fff; border-color: rgba(10, 132, 255, .22); }
.inboxrow.is-read { opacity: .56; background: rgba(246, 248, 252, .7); }
.inboxrow__main { flex: 1 1 auto; min-width: 0; }
.inboxrow__main b { display: block; font-size: 13px; font-weight: 620; }
.inboxrow__main span { display: block; margin-top: 2px; font-size: 11.8px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inboxrow__t { flex: none; font-size: 11.2px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.inboxrow__act { flex: none; display: flex; align-items: center; gap: 6px; }

/* 覆盖兜底：老规则 .side__lock 带 width:100% 与左对齐，这里用 !important 保证
   三个按钮同一尺寸、图标与文字一律居中 */
.side__tools .tool,
.side__tools .side__lock {
  height: 32px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(120, 132, 152, .18) !important;
  background: rgba(255, 255, 255, .72) !important;
}
.side__tools .tool { width: 32px !important; padding: 0 !important; display: grid !important; place-items: center !important; }
.side__tools .side__lock {
  flex: 1 1 auto !important; width: auto !important;
  margin: 0 !important; padding: 0 8px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  gap: 6px !important;
}
.side__tools .tool:hover,
.side__tools .side__lock:hover { background: #fff !important; border-color: rgba(10, 132, 255, .25) !important; color: var(--ink) !important; }

/* ============================================================
   组织详情：一句话摘要条 + 租户行（折扣内联）+ 折叠区
   ============================================================ */
.orgsum {
  display: flex; align-items: center; gap: 8px;
  padding: 0 2px 2px; font-size: 12px; color: var(--ink-3);
}
.orgsum__k { font-weight: 620; color: var(--ink-2); }
.orgsum__s {
  padding: 1px 7px; border-radius: 999px;
  background: rgba(52, 199, 89, .13); color: #157a34;
  font-size: 10.5px; font-weight: 620;
}
.orgsum__d { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.orgsum__o { color: var(--ink-2); }
.orgsum__t { font-variant-numeric: tabular-nums; }

.attlist__i--rich { flex-wrap: wrap; row-gap: 6px; }
.salebox {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--ink-4); white-space: nowrap;
}
.salebox input { width: 52px; text-align: right; height: 26px; padding: 0 4px; }
.salebox .pct { color: var(--ink-3); }

details.fold { margin: 2px 0 14px; }
details.fold > summary {
  cursor: pointer; font-size: 12px; color: var(--ink-3);
  padding: 6px 2px; list-style: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '＋ '; color: var(--brand); }
details.fold[open] > summary::before { content: '－ '; }
details.fold > summary:hover { color: var(--brand); }

/* 趋势图只有一个数据点时：给数字，不画方块 */
.chart-solo { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 170px; gap: 2px; }
.chart-solo__n { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-solo__u { font-size: 11.5px; color: var(--ink-3); }
.chart-solo__h { margin-top: 8px; font-size: 10.5px; color: var(--ink-4); }

/* 供应商详情 · 在售渠道表：六列挤在抽屉里会把「启用中」折成竖排，
   收成五列并把价格锁成不换行，模型名与调用名上下两行 */
.chtab td, .chtab th { white-space: nowrap; }
.ch-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-name b { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.ch-name i { font-style: normal; font-size: 10.5px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; }
.chm { font-variant-numeric: tabular-nums; font-size: 12px; }
.chm i { display: block; font-style: normal; font-size: 10px; color: var(--ink-4); }
.chd { font-size: 12px; color: var(--ink-3); }

/* 客户抽屉 · 路由偏好：一个模型一行，标注「不选就自动」 */
.routepref {
  margin: 10px 0 4px; padding: 10px 12px;
  border-radius: 10px; background: rgba(246, 248, 252, .9);
  border: 1px solid rgba(104, 120, 148, .14);
}
.rp__t { font-size: 12px; font-weight: 620; color: var(--ink-2); margin-bottom: 3px; }
.rp__i { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.rp__n { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp__sel { flex: 0 0 190px; }

/* ============================================================
   抽屉栈 / 表单就地报错 / 保存中（UX 评审 §3.1）
   ============================================================ */
.drawer__back { margin-right: 6px; flex: none; }
.drawer__back svg { width: 16px; height: 16px; }
.drawer__crumb { font-size: 11px; color: var(--ink-4); margin-bottom: 2px; max-width: 520px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-err { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
  color: var(--bad, #ff3b30); background: rgba(255, 59, 48, .07); border: 1px solid rgba(255, 59, 48, .22); }
.field.is-err .input { border-color: var(--bad, #ff3b30); box-shadow: 0 0 0 3px rgba(255, 59, 48, .12); }
.field__err { display: block; font-size: 11.5px; color: var(--bad, #ff3b30); margin-top: 4px; line-height: 1.5; }
.btn.is-loading { opacity: .7; cursor: progress; }
.btn.is-loading::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 6px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: -1px; animation: gwspin .7s linear infinite; }
@keyframes gwspin { to { transform: rotate(360deg); } }
[data-need].is-denied, .is-denied[disabled] { opacity: .45; cursor: not-allowed; }
.cfm__form { text-align: left; margin-top: 10px; display: grid; gap: 10px; }
.cfm__form .field__l { font-size: 12px; }
.cfm__box--wide { width: min(560px, calc(100vw - 32px)); }
/* ============================================================
   定价：价格表 + 右侧改价工作台（console-flows.js renderPrices / paintBench）
   ============================================================ */
.pw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
/* 选中模型时工作台加宽。左侧表格不再藏列：所有列、全文都保留（不换行、不省略），
   表格按内容撑宽，左侧区域变窄时横向滚动（.pw-main .tbl-wrap overflow-x:auto）。 */
.pw-layout.is-open { grid-template-columns: minmax(0, 1fr) 560px; }
.pw-main .tbl-wrap { overflow-x: auto; overflow-y: visible; max-width: 100%; -webkit-overflow-scrolling: touch; }
.pw-tbl { width: max-content; min-width: 100%; }
.pw-tbl td .cell-sub { white-space: nowrap; overflow: visible; text-overflow: clip; }
@media (max-width: 1280px) { .pw-layout { grid-template-columns: 1fr; } }
.pw-main { min-width: 0; }
.pw-tbl th.pw-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.pw-tbl th.pw-sort.is-on { color: var(--brand); }
.pw-tbl tr.pw-row { cursor: pointer; }
.pw-tbl tr.pw-row:hover td { background: rgba(10, 132, 255, .04); }
.pw-tbl tr.pw-row.is-sel td { background: rgba(10, 132, 255, .09); }
.pw-tbl tr.pw-row.is-flash td { animation: pwFlash 2.4s ease-out 1; }
@keyframes pwFlash { 0% { background: rgba(52, 199, 89, .35); } 100% { background: transparent; } }
.pw-tbl .is-bad, .pw-cust .is-bad { color: var(--bad); }
.pw-tbl .is-mid, .pw-cust .is-mid { color: var(--warn); }
.pw-tbl .is-ok, .pw-cust .is-ok { color: var(--ok); }
.pcard.is-sel { outline: 2px solid var(--brand); }
.pw-bench { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--glass-2);
  border: 1px solid rgba(19, 32, 58, .08); border-radius: 16px; box-shadow: var(--sh-2); padding: 12px 14px 0; }
.pw-empty { padding: 40px 18px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; gap: 8px; }
.pw-empty b { color: var(--ink); font-size: 14px; }
.pw-hd { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(19, 32, 58, .07); }
.pw-t { font-weight: 700; font-size: 15px; }
.pw-s { font-size: 11.5px; color: var(--ink-3); }
.pw-sec { padding: 10px 0; border-bottom: 1px dashed rgba(19, 32, 58, .08); }
.pw-st { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13px; margin-bottom: 6px; }
.pw-st > b { color: var(--brand); }
.pw-sub { font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
div.pw-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
div.pw-row .field { flex: 1; min-width: 140px; margin: 0; }
.pw-tbl td, .pw-tbl th { white-space: nowrap; }
.pw-safe { margin-left: auto; font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.pw-safe input { width: 46px; height: 24px; border: 1px solid rgba(19, 32, 58, .15); border-radius: 6px; padding: 0 4px; }
.pw-slider { margin: 18px 0 8px; }
.pw-track { position: relative; height: 34px; }
.pw-track input[type=range] { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; margin: 0; }
.pw-mark { position: absolute; bottom: 2px; width: 2px; height: 22px; margin-left: -1px; border-radius: 1px; pointer-events: none; }
.pw-mark--cost { background: var(--bad); }
.pw-mark--safe { background: #34c759; }
.pw-lab { position: absolute; top: -12px; transform: translateX(-50%); font-size: 10.5px; font-style: normal; white-space: nowrap; }
.pw-lab--cost { color: var(--bad); }
.pw-lab--safe { color: var(--ok); top: -1px; }
.pw-imp { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.pw-imp .is-bad { color: var(--bad); } .pw-imp .is-ok { color: var(--ok); }
.pw-bulk { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.pw-bulk .input { height: 30px; }
.pw-cust { max-height: 380px; overflow: auto; }
.pw-cust td, .pw-cust th { padding: 6px 6px; font-size: 12px; }
.pw-cust tr.is-loss td { background: rgba(255, 59, 48, .05); }
.input.pw-cell { height: 28px; padding: 0 6px; width: 72px; text-align: right; font-size: 12px; }
.input.pw-cell.is-chg { border-color: var(--brand); background: rgba(10, 132, 255, .06); font-weight: 650; }
.input.pw-cell.is-err, .pw-sec .field.is-err .input { border-color: var(--bad); background: var(--bad-bg); }
tr.is-err td { background: var(--bad-bg); }
.pw-ft { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 0 12px; background: var(--glass-2); }
.pw-err { color: var(--bad); font-size: 12px; max-width: 280px; }
.pw-hist { font-size: 12.5px; }
.pw-hrow { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(19, 32, 58, .05); }
.pw-hdiff { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfm__box--wide { width: min(760px, calc(100vw - 32px)); }
/* 令牌行「⋯」更多操作（批次 F）：删除与停用不再与详情并列 */
.kmore { display: inline-block; position: relative; }
.kmore > summary { list-style: none; cursor: pointer; }
.kmore > summary::-webkit-details-marker { display: none; }
.kmore__m { position: absolute; right: 0; top: 30px; z-index: 20; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #fff; border: 1px solid rgba(19,32,58,.1); border-radius: 10px; box-shadow: 0 8px 24px rgba(19,32,58,.12); min-width: 140px; }
.kmore__m .btn { justify-content: flex-start; }

/* ---- 功能树精简（G 批）：页签宿主 / 待办栏 / 顶栏搜索与铃铛 ---- */
.nav2-tabs { display:flex; gap:4px; border-bottom:1px solid rgba(19,32,58,.08); margin:0 0 12px; }
.nav2-tabs button { border:0; background:none; padding:9px 14px; font-size:13px; color:var(--ink-3); cursor:pointer; border-bottom:2px solid transparent; }
.nav2-tabs button.is-on { color:var(--brand); border-bottom-color:var(--brand); font-weight:650; }
.todo2 { margin-bottom:12px; }
.todo2__row { display:flex; gap:10px; flex-wrap:wrap; padding:4px 0 2px; }
.todo2__i { display:flex; align-items:center; gap:10px; min-width:220px; flex:1; text-align:left; padding:10px 14px; border-radius:12px; border:1px solid rgba(19,32,58,.08); background:#fff; cursor:pointer; }
.todo2__i:hover { border-color:var(--brand); }
.todo2__i b { font-size:22px; font-variant-numeric:tabular-nums; min-width:28px; }
.todo2__i span { display:flex; flex-direction:column; flex:1; min-width:0; }
.todo2__i em { font-style:normal; font-weight:650; font-size:13px; }
.todo2__i small { font-size:11px; color:var(--ink-3); }
.todo2__i u { text-decoration:none; font-size:11.5px; color:var(--brand); white-space:nowrap; }
.todo2__i--warn b { color:#c77700; } .todo2__i--bad b { color:#e0483e; }
.todo2__empty { font-size:12.5px; color:var(--ink-3); padding:6px 2px; }
.gsearch { position:relative; display:flex; align-items:center; gap:6px; height:30px; padding:0 10px; margin-right:8px; border-radius:9px; border:1px solid rgba(120,132,152,.18); background:rgba(255,255,255,.72); color:var(--ink-3); }
.gsearch input { border:0; outline:0; background:none; width:190px; font-size:12px; color:var(--ink); }
.gsearch__pop { position:absolute; top:36px; right:0; width:380px; max-height:420px; overflow:auto; z-index:60; background:#fff; border:1px solid rgba(19,32,58,.1); border-radius:12px; box-shadow:0 12px 32px rgba(19,32,58,.16); padding:6px; }
.gsearch__i { display:grid; grid-template-columns:56px 1fr; grid-template-rows:auto auto; column-gap:8px; width:100%; text-align:left; padding:7px 9px; border:0; background:none; border-radius:8px; cursor:pointer; }
.gsearch__i:hover, .gsearch__i.is-first { background:rgba(10,132,255,.07); }
.gsearch__i em { grid-row:span 2; font-style:normal; font-size:10.5px; color:var(--brand); align-self:center; }
.gsearch__i b { font-size:12.5px; } .gsearch__i small { font-size:11px; color:var(--ink-4); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gsearch__none { padding:10px; font-size:12px; color:var(--ink-3); }
.bell2 { position:relative; margin-right:6px; }
.bell2__n { position:absolute; top:-3px; right:-3px; min-width:16px; height:16px; padding:0 4px; border-radius:99px; background:#e0483e; color:#fff; font-size:10px; font-style:normal; line-height:16px; text-align:center; }
.bell2__n.is-err { background:#8a93a2; }
.todo2__empty--warn { color:#8a5300; background:rgba(255,159,10,.10); border:1px solid rgba(255,159,10,.28); border-radius:10px; padding:8px 10px; line-height:1.6; }
.bell2__pop { position:absolute; top:52px; right:60px; width:340px; z-index:60; background:#fff; border:1px solid rgba(19,32,58,.1); border-radius:12px; box-shadow:0 12px 32px rgba(19,32,58,.16); padding:8px; display:flex; flex-direction:column; gap:6px; }
.bell2__pop .todo2__i { min-width:0; }
/* 390/320 宽：固定 340px + right:60px 会让弹层左缘跑到视口外 */
@media (max-width:560px) {
  .bell2__pop { width: auto; left: 12px; right: 12px; }
  .gsearch__pop { width: auto; left: 0; right: 0; }
}
.bell2__hd { font-weight:700; font-size:13px; padding:2px 4px; }
@media (max-width:1180px) { .gsearch input { width:120px; } }
.nav2-cnt { display:inline-block; margin-left:6px; min-width:16px; height:16px; padding:0 4px; border-radius:99px; background:#ff9f0a; color:#fff; font-size:10px; font-style:normal; line-height:16px; text-align:center; }

#n2strip { padding: 14px 22px 0; }
#n2strip .nav2-tabs { margin-bottom: 0; }
#n2strip .todo2 { margin-bottom: 0; }

/* ---------- 客户详情：分区导航 + 待处理（A 批） ---------- */
.orgtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 12px; }
[data-sec] { scroll-margin-top: 8px; }
.orgtabs button { border: 1px solid rgba(120,132,152,.2); background: rgba(255,255,255,.7); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.orgtabs button:hover { border-color: rgba(10,132,255,.4); color: var(--brand); }
.pendbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin: 8px 0; border-radius: 12px; background: rgba(255,159,10,.10); border: 1px solid rgba(255,159,10,.28); font-size: 12.5px; color: #8a5300; cursor: pointer; }
.pendbar b { font-weight: 640; }
.pendbar u { text-decoration: none; font-weight: 600; }
.pendbar--list { cursor: default; }
.pendchip { border: 1px solid rgba(255,159,10,.35); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--ink); }
.pendchip em { font-style: normal; color: #8a5300; margin-left: 6px; font-size: 11px; }
.pend { display: flex; flex-direction: column; gap: 8px; }
.pend__i { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(120,132,152,.16); font-size: 12.5px; }
.pend__i.is-focus { border-color: rgba(10,132,255,.55); box-shadow: 0 0 0 3px rgba(10,132,255,.14); }
.pend__k { flex: none; font-size: 11px; font-weight: 620; padding: 2px 8px; border-radius: 999px; background: rgba(94,92,230,.12); color: #4b49c9; }
.pend__m { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pend__m b { font-weight: 620; color: var(--ink); }
.pend__m span { color: var(--ink-3); font-size: 11.5px; }
.todo-dot { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: rgba(255,159,10,.16); color: #8a5300; vertical-align: 1px; }

/* ---------- 客户留言对话 ---------- */
.fbthread { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow: auto; padding: 4px 2px; }
.fbmsg { max-width: 78%; align-self: flex-start; }
.fbmsg--me { align-self: flex-end; }
.fbmsg__who { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.fbmsg--me .fbmsg__who { text-align: right; }
.fbmsg__b { white-space: pre-wrap; font-size: 13px; line-height: 1.6; padding: 9px 12px; border-radius: 12px; background: rgba(120,132,152,.10); color: var(--ink); }
.fbmsg--me .fbmsg__b { background: rgba(10,132,255,.12); }

/* ---------- 首页「待办」卡片（取代原「待处理告警」大卡片；数据与顶栏铃铛同源，console-nav2.js GW_TODO） ---------- */
.todo2__col { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.todo2__col .todo2__i { min-width: 0; }
.todo2__col .todo2__empty { grid-column: 1 / -1; }
.todo2__empty--ok { color: var(--ok); font-weight: 600; font-size: 13px; padding: 14px 4px; }

/* ---------- 智能体服务：卡片入口（console-mcp.js；样式对齐客户门户 .agcard） ---------- */
.mcpag__h { margin: 2px 0 14px; }
.mcpag__h h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.mcpag__h p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.mcpag { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mcpag__c { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 20px 22px; border-radius: 18px;
  border: 1px solid rgba(19, 32, 58, .09); background: var(--glass-2); box-shadow: var(--sh-1); cursor: pointer;
  font: inherit; color: inherit; transition: box-shadow .18s, border-color .18s, transform .18s; }
.mcpag__c:hover { border-color: rgba(10, 132, 255, .45); box-shadow: var(--sh-2); transform: translateY(-1px); }
.mcpag__hd { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 6px; }
.mcpag__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(10, 132, 255, .10); color: var(--brand); }
.mcpag__t { font-size: 16px; font-weight: 650; }
.mcpag__tag { font-size: 12px; color: var(--ink-3); }
.mcpag__d { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); margin: 4px 0 8px; }
.mcpag__ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; width: 100%; font-size: 12px; color: var(--ink-3); }
.mcpag__go { font-weight: 650; color: var(--brand); white-space: nowrap; }
.mcpag__c--soon { cursor: default; border-style: dashed; border-color: rgba(19, 32, 58, .18); background: transparent; box-shadow: none; }
.mcpag__c--soon:hover { transform: none; box-shadow: none; border-color: rgba(19, 32, 58, .18); }
.mcpag__bar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.mcpag__crumb { font-size: 12.5px; color: var(--ink-3); }
.mcpag__crumb b { color: var(--ink); font-weight: 620; }
/* ---------- 熔断降级 / 健康检查：版式修正 ----------
   1) 两页都把内容包在一个 [data-gov-view] 里，.page 的 gap 只作用在它身上，里面的
      KPI / 工具条 / 面板之间是 0 间距，面板上下贴在一起（圆角被下一块盖住）。
   2) ≤1360px 时 .kpis 被改成 3 列且覆盖了 .kpis--4，4 张 KPI 卡折成 3+1。
   3) 健康检查的检查项小卡最小 210px，「PostgreSQL 通过」「近 7 天失败调用 通过」被挤成竖排。
   4) hcard 里固定三等分，长值（资源指纹哈希）溢出盖住相邻格，长说明被塞进 1/3 宽的窄列。 */
[data-gov-view="breakers"], [data-gov-view="health"] { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
[data-gov-view="breakers"] > .toolbar, [data-gov-view="health"] > .toolbar { padding-bottom: 0; }
[data-gov-view="breakers"] > .panel, [data-gov-view="health"] > .panel { margin: 0; }
@media (max-width: 1360px) and (min-width: 821px) {
  .kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hck { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hck__i { margin: 0; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.hck__hd { display: flex; gap: 6px; align-items: baseline; min-width: 0; flex-wrap: nowrap; }
.hck__hd b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hck__st { flex: none; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hck__at { flex: none; font-size: 10.5px; color: var(--ink-4); white-space: nowrap; }
.hgrid--3 .hcard__grid, .hcard__grid { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); column-gap: 12px; row-gap: 10px; }
.hcard__grid > div { min-width: 0; }
.hcard__grid > .hcard__wide { grid-column: 1 / -1; }
.hcard__grid b { font-size: 15.5px; overflow-wrap: anywhere; line-height: 1.3; }
.hmet2 > div { display: flex; flex-direction: column; min-width: 0; }
.hmet2 > div > .rv__sec { flex: 1; }