/* ENCORE 控制台 · 各功能视图样式 (2026-07-05)
   沿用官网/概览语言：纸面白卡、1px 黑描边、Archivo Black 数字、红 #f2371d 信号、椭圆环 */

:root {
  --v-line: rgba(17, 17, 17, .14);
  --v-line-soft: rgba(17, 17, 17, .1);
  --v-ink: #0b0b0b;
  --v-muted: #77766f;
  --v-soft: #8a897f;
  --v-red: #f2371d;
  --v-green: #22a760;
  --v-amber: #d9a441;
  --v-paper: #f7f6f0;
  --v-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --v-disp: "Archivo Black", "Microsoft YaHei UI", sans-serif;
}

/* ---------- 视图切换 ---------- */
.view { display: none; }
.view.is-active {
  display: block;
  animation: view-enter 220ms cubic-bezier(.2, 0, 0, 1) both;
}

@keyframes view-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .view.is-active { animation: none; }
}

/* ---------- 通用页头 ---------- */
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.view-head h1 {
  margin: 0;
  font-family: var(--v-disp);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: 0;
}
.view-head p {
  margin: 8px 0 0;
  color: var(--v-muted);
  font-size: 13px;
  font-weight: 700;
}
.view-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- 通用控件 ---------- */
.v-btn {
  /* 不少按钮是「图标 + 文字」，没有 flex 和 gap 会挤在一起、基线也对不齐 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--v-ink);
  border-radius: 6px;
  background: #fff;
  color: var(--v-ink);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.v-btn:hover { background: var(--v-paper); }
.v-btn.primary { background: var(--v-ink); color: #fff; }
.v-btn.primary:hover { background: #000; }
.v-btn.block { width: 100%; }
.v-link { color: var(--v-ink); font-weight: 900; font-size: 12px; cursor: pointer; }
.v-link:hover { text-decoration: underline; }
.v-link.danger { color: var(--v-red); }
.v-search, .v-inline-select {
  border: 1px solid rgba(17, 17, 17, .2);
  border-radius: 6px;
  padding: 9px 14px;
  font: inherit;
  background: #fff;
}
.v-search { min-width: 220px; }

.v-field { display: block; margin-bottom: 14px; }
.v-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #55544e;
}
.v-field input[type="text"],
.v-field select,
.v-field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(17, 17, 17, .2);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  resize: vertical;
}
.v-field input[type="range"] { width: 100%; }
.v-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.param-note { margin-top: 8px; font-size: 11px; color: var(--v-soft); }

/* ---------- 状态标签 ---------- */
.v-table .pill, .task-state .pill, .audio-row .pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 900;
}
.v-table .pill.ok, .task-state .pill.ok { color: #1f9c6e; border-color: rgba(31, 156, 110, .4); background: rgba(47, 214, 176, .12); }
.v-table .pill.run, .task-state .pill.run { color: #b45400; border-color: rgba(180, 84, 0, .35); background: rgba(216, 168, 78, .16); }
.v-table .pill.err { color: var(--v-red); border-color: rgba(242, 55, 29, .4); background: rgba(242, 55, 29, .1); }
.v-table .pill.off { color: var(--v-soft); border-color: rgba(17, 17, 17, .2); background: #f1f0ea; }

/* ---------- 椭圆环 glyph ---------- */
.ring {
  display: inline-block;
  width: 44px;
  height: 28px;
  box-sizing: border-box;
  border: 9px solid var(--v-ink);
  border-radius: 50%;
  transform: rotate(-16deg);
  flex: none;
}
.ring.purple { border-color: #7b65ff; }
.ring.blue   { border-color: #12a8ff; }
.ring.green  { border-color: #2fd6b0; }
.ring.red    { border-color: var(--v-red); }

/* ---------- 通用表格卡 ---------- */
.v-table-card {
  border: 1px solid var(--v-ink);
  border-radius: 8px;
  background: #fff;
  padding: 20px 22px;
}
.v-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.v-table th {
  text-align: left;
  padding: 10px 8px;
  color: var(--v-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(17, 17, 17, .16);
}
.v-table td { padding: 14px 8px; border-bottom: 1px solid var(--v-line-soft); }
.v-table tbody tr:last-child td { border-bottom: 0; }
.v-table tbody tr:hover { background: var(--v-paper); }
.mono { font-family: ui-monospace, Menlo, monospace; color: #55544e; }

/* ---------- 筛选标签 ---------- */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tabs a {
  padding: 7px 16px;
  border: 1px solid rgba(17, 17, 17, .2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.filter-tabs a.is-on { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }

/* ============ 对话（会话列表 + 顶部模型选择 + 底部输入卡） ============ */
.view[data-view="chat"] { padding: 0; overflow: hidden; }
.chat2 {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100%;
}
.conv-rail {
  border-right: 1px solid var(--v-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.conv-top { display: flex; gap: 8px; padding: 14px 12px 10px; }
.conv-new { flex: 1; }
.conv-collapse {
  width: 38px; height: 38px;
  border: 1px solid rgba(17, 17, 17, .2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
}
.conv-scroll { flex: 1; overflow: auto; padding: 4px 10px 14px; }
.conv-group {
  margin: 12px 6px 5px;
  font-family: var(--v-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v-soft);
}
.conv-item {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.conv-item:hover { background: #f1f0ea; }
.conv-item.is-on { background: var(--v-ink); color: #fff; }

.chat-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.wt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--v-line);
}
.wt-spacer { flex: 1; }
.model-sel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--v-ink);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.model-sel em, .ctrl-pill em { font-style: normal; font-size: 11px; color: var(--v-soft); }
.mlogo {
  width: 20px; height: 13px;
  box-sizing: border-box;
  border: 4px solid var(--v-ink);
  border-radius: 50%;
  transform: rotate(-16deg);
  flex: none;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(17, 17, 17, .2);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--v-ink); }
.mini-switch {
  width: 26px; height: 15px;
  border: 1px solid rgba(17, 17, 17, .3);
  border-radius: 999px;
  position: relative;
  background: #f1f0ea;
}
.mini-switch::after {
  content: "";
  position: absolute;
  left: 1px; top: 1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--v-ink);
}
.chat-thread {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
/* white-space 必须给：模型输出里本来就带换行符（数据是对的），
   但浏览器默认会把换行压成空格，一篇分了 8 段的回答会被拼成一整坨。
   pre-wrap = 保留换行、保留连续空格，同时该折行的地方照样折。
   overflow-wrap 兜底：超长 URL / 无空格长串不会把气泡撑出容器。
   注意这里只解决换行，Markdown 标记（** ` # -）仍然是原样字符。 */
.bubble {
  max-width: 72%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.user .bubble { background: var(--v-ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot .bubble { background: #fff; border: 1px solid var(--v-line); border-bottom-left-radius: 4px; }
.chat-composer2 { padding: 0 20px 18px; }

/* ============ 即梦式底栏（生图 / 视频 / 音频共用） ============ */
.studio-view { padding: 0 !important; flex-direction: column; overflow: hidden; }
.view.studio-view.is-active { display: flex; }
.studio-results {
  flex: 1;
  overflow: auto;
  padding: 24px 26px 12px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.batch { position: relative; } /* 右下角工具条的定位基准 */

/* 历史卡右下角工具条：悬停浮现；触屏点提示词展开时钉住（is-pinned）*/
.batch-corner-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s ease; z-index: 3; }
.batch:hover .batch-corner-actions, .batch-corner-actions.is-pinned { opacity: 1; }
.batch-corner-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid rgba(17,17,17,.16); border-radius: 999px; background: rgba(255,255,255,.94); color: var(--v-ink); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(17,17,17,.08); }
.batch-corner-actions button:hover { border-color: var(--v-ink); }
.batch-corner-actions svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.batch-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.batch-head span {
  font-size: 13px;
  font-weight: 900;
  color: var(--v-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.batch-head small { color: var(--v-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.batch-reuse { margin-left: auto; white-space: nowrap; }

.result-grid.image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 12px; }
.result-grid.image-grid.two { grid-template-columns: repeat(2, minmax(0, 220px)); }
.result-tile {
  aspect-ratio: 1;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f2f1ea, #e4e2d9);
  display: grid;
  place-items: center;
  position: relative; /* 「正在打开」的转圈是绝对定位，没有这行会跑到卡片外面 */
}
.tile-glyph { width: 46px; height: 30px; box-sizing: border-box; border: 9px solid rgba(17, 17, 17, .2); border-radius: 50%; transform: rotate(-16deg); }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 12px; }
.video-tile {
  position: relative;
  aspect-ratio: var(--video-aspect, 16 / 9);
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #2b2b2b, #0b0b0b);
  display: grid;
  place-items: center;
}
.studio-view[data-view="video"] .video-grid.is-portrait {
  grid-template-columns: minmax(0, 140px) !important;
}
.studio-view[data-view="video"] .video-grid.is-square {
  grid-template-columns: minmax(0, 240px) !important;
}
.video-tile.ready { background: linear-gradient(135deg, #3a3a3a, #101010); }
.video-tile.ready > video {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.v-play {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--v-ink);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.v-dur {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.v-progress {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.v-progress i { display: block; height: 100%; width: var(--p); background: var(--v-red); }

.audio-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.audio-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
}
.audio-row small { color: var(--v-soft); font-size: 12px; font-weight: 800; }
.play-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--v-ink); background: var(--v-ink); color: #fff; cursor: pointer; font-size: 12px; }
.wave { height: 30px; border-radius: 2px; background-image: repeating-linear-gradient(90deg, rgba(17, 17, 17, .32) 0 2px, transparent 2px 7px); }

/* 底部输入卡（composer） */
.studio-composer { flex: none; padding: 10px 26px 20px; }
.composer-card {
  border: 1px solid var(--v-ink);
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
}
.composer-card textarea {
  width: 100%;
  min-height: 54px;
  border: 0;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 14px;
  background: transparent;
  padding: 2px 2px 8px;
}
.mode-row { margin-bottom: 10px; }
.ref-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ref-add {
  padding: 9px 14px;
  border: 1px dashed rgba(17, 17, 17, .35);
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  color: var(--v-muted);
  cursor: pointer;
}
.ref-add:hover { border-color: var(--v-ink); color: var(--v-ink); }
.ref-hint { margin: 0 2px 8px; }
.video-ref-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.video-ref-chip {
  height: 42px;
  max-width: 220px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--v-line);
  border-radius: 6px;
  background: var(--v-bg);
  color: var(--v-ink);
  overflow: hidden;
}
.video-ref-chip.is-image { position: relative; width: 58px; padding: 0; }
.video-ref-chip.is-image img { width: 40px; height: 40px; object-fit: cover; flex: none; }
.video-ref-label {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(17, 17, 17, .78);
  color: #fff;
  font-size: 9px;
  line-height: 1.4;
}
.video-ref-chip.is-video { padding: 0 6px 0 8px; }
.video-ref-index, .video-ref-duration { flex: none; font-size: 10px; font-weight: 900; color: var(--v-muted); }
.video-ref-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.video-ref-remove {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--v-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.video-ref-remove:hover { border-color: var(--v-line); color: var(--v-ink); background: #fff; }
.video-ref-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(180, 55, 55, .35);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 17, .16);
  color: #a83232;
  font-size: 12px;
  font-weight: 800;
}
.ctrl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.studio-view[data-view="video"] .ctrl-row,
.studio-view[data-view="image"] .ctrl-row {
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}
.studio-view[data-view="image"] .ctrl-pill { padding-inline: 7px !important; }
.video-ctrl-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
}
.video-ctrl-scroll > * { flex: none; }
.video-ctrl-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.studio-view[data-view="video"] .ctrl-pill { padding-inline: 7px !important; }
/* 模型名已在 JS 里做过简称（去厂商前缀和日期码），这里给到简称需要的宽度：
   seedance-2-0-fast 约 17 字符 ≈ 108px，留到 140px 覆盖更长的简称；
   仍超出的才截断，完整名在 title 里 */
.video-ctrl-scroll > .ctrl-pill:first-child > span:not(.mlogo) {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-view[data-view="video"] .seg2 span { padding-inline: 6px !important; }
.video-duration {
  width: 158px;
  height: 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid rgba(17, 17, 17, .22);
  border-radius: 999px;
  background: #fff;
  color: var(--v-ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.video-duration output {
  min-width: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.video-duration input[type="range"] {
  width: 76px;
  height: 18px;
  margin: 0 0 0 2px;
  accent-color: var(--v-ink);
  cursor: pointer;
}
.studio-view[data-view="video"] .wt-spacer { min-width: 0; }
.studio-view[data-view="video"] .icon-pill,
.studio-view[data-view="video"] .prompt-lib-trigger,
.studio-view[data-view="video"] .gen-btn { flex: none; }
.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(17, 17, 17, .78);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}
.video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #111;
}
.video-play-overlay svg { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.video-tile.ready.is-playing .video-play-overlay { opacity: 0; pointer-events: none; }
.video-quick-actions {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 5px;
}
.video-grid.is-portrait .video-quick-actions { display: flex; }
.video-quick-action {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  background: rgba(17,17,17,.68);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  cursor: pointer;
}
.video-quick-action:hover { background: rgba(17,17,17,.9); }
.video-quick-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.video-audio-off { display: none; }
.video-mute-action.is-muted .video-audio-on { display: none; }
.video-mute-action.is-muted .video-audio-off { display: block; }
.ctrl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(17, 17, 17, .22);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.ctrl-pill:hover { border-color: var(--v-ink); }
.seg2 {
  display: inline-flex;
  border: 1px solid rgba(17, 17, 17, .22);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.seg2 span {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  border-left: 1px solid rgba(17, 17, 17, .12);
}
.seg2 span:first-child { border-left: 0; }
.seg2 span.on { background: var(--v-ink); color: #fff; }
.icon-pill {
  width: 34px; height: 34px;
  border: 1px solid rgba(17, 17, 17, .22);
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.icon-pill:hover { border-color: var(--v-ink); }
.gen-btn {
  height: 38px;
  padding: 0 20px;
  border: 1px solid var(--v-ink);
  border-radius: 999px;
  background: var(--v-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.gen-btn:hover { background: #000; }

@media (max-width: 1200px) {
  .chat2 { grid-template-columns: 190px minmax(0, 1fr); }
  .result-grid.image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-view[data-view="video"] .ctrl-row { flex-wrap: wrap; }
  .studio-view[data-view="video"] .video-ctrl-scroll {
    width: 100%;
    flex-basis: 100%;
    flex-wrap: wrap;
  }
  .studio-view[data-view="video"] .wt-spacer { display: none; }
}
/* ============ 作品库 ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-card { border: 1px solid var(--v-line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .15s ease; }
.gallery-card:hover { border-color: var(--v-ink); }
.gc-thumb { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #efeee7, #dcdad1); }
.gc-meta { padding: 12px 14px; }
.gc-meta b { display: block; font-size: 14px; }
.gc-meta small { color: var(--v-soft); font-size: 12px; }

/* ============ Skills / 模型 卡片网格 ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card, .model-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--v-line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  transition: border-color .15s ease;
}
.skill-card:hover, .model-card:hover { border-color: var(--v-ink); }
.skill-card b { font-size: 15px; }
.skill-card small { flex: 1; color: var(--v-muted); font-size: 12px; line-height: 1.5; }
.skill-card .v-btn { align-self: flex-start; }
.mc-head { display: flex; align-items: center; gap: 12px; }
.mc-head b { display: block; font-size: 14px; }
.mc-head small { color: var(--v-muted); font-size: 12px; }
.mc-price { font-family: var(--v-disp); font-size: 18px; }

/* ============ 资讯 ============ */
.news-feature { border: 1px solid var(--v-ink); border-radius: 8px; background: #fff; padding: 28px; margin-bottom: 20px; }
.nf-tag { display: inline-block; padding: 3px 10px; background: var(--v-red); color: #fff; font-size: 11px; font-weight: 900; border-radius: 3px; }
.news-feature h2 { font-family: var(--v-disp); font-size: 26px; margin: 14px 0 10px; }
.news-feature p { color: #55544e; line-height: 1.7; max-width: 640px; margin: 0 0 14px; }
.news-list { display: flex; flex-direction: column; }
.news-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--v-line-soft); cursor: pointer; }
.news-row:last-child { border-bottom: 0; }
.news-row b { font-size: 14px; }
.news-row small { color: var(--v-soft); font-size: 12px; }
.news-row:hover { background: var(--v-paper); }

/* ============ 调用日志筛选 ============ */
.log-filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.log-filters select { border: 1px solid rgba(17, 17, 17, .2); border-radius: 6px; padding: 8px 12px; font: inherit; background: #fff; }

/* ============ 财务通用 ============ */
.fin-tab-bar { display: flex; gap: 4px; margin-bottom: 18px; }
.fin-tab { padding: 8px 20px; border: 1px solid rgba(17,17,17,.2); border-radius: 20px; background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.fin-tab.is-on { background: var(--v-red, #e04a2f); color: #fff; border-color: var(--v-red, #e04a2f); }

.fin-filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.fin-seg { display: flex; border: 1px solid rgba(17,17,17,.2); border-radius: 6px; overflow: hidden; }
.seg-btn { padding: 7px 14px; border: none; background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.seg-btn.is-on { background: var(--v-ink); color: #fff; }
.fin-filter-bar .v-inline-select { font-size: 12px; font-weight: 800; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head span { font-size: 14px; font-weight: 900; }
.section-head small { color: var(--v-muted); font-size: 11px; font-weight: 800; }
.section-head-plain { font-size: 14px; font-weight: 900; margin-bottom: 16px; }
.section-link { font-size: 12px; font-weight: 800; color: var(--v-ink); text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* tab pills (流水筛选) */
.tab-pills { display: flex; gap: 4px; }
.tab-pill { padding: 4px 12px; border: 1px solid rgba(17,17,17,.2); border-radius: 14px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.tab-pill.is-on { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }

.form-label { display: block; font-size: 12px; font-weight: 900; color: #55544e; margin-bottom: 8px; }
.v-input { width: 100%; padding: 10px 14px; border: 1px solid rgba(17,17,17,.2); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; box-sizing: border-box; }
.v-btn:disabled, .gen-btn:disabled, .amount-chip:disabled, .seg-btn:disabled, .tab-pill:disabled { opacity: .45; cursor: not-allowed; }

/* ============ 顶部全局工具弹层 ============ */
.topnav-pop {
  position: fixed;
  z-index: 220;
  width: 260px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(17,17,17,.14);
}
.topnav-pop[hidden] { display: none; }
.topnav-pop-title { padding: 8px 10px 6px; font-size: 12px; font-weight: 900; color: var(--v-muted); }
.topnav-pop-empty { padding: 12px 10px; font-size: 12px; font-weight: 800; color: var(--v-muted); }
.topnav-pop-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  font: inherit;
  text-align: left;
  color: var(--v-ink);
  cursor: pointer;
}
.topnav-pop-item:hover, .topnav-pop-item.is-on { background: rgba(17,17,17,.06); }
.topnav-pop-item.danger b { color: #c6382b; }
.topnav-pop-item b { font-size: 13px; font-weight: 900; }
.topnav-pop-item span { font-size: 11px; font-weight: 800; color: var(--v-muted); white-space: nowrap; }
.topnav-account { padding: 10px; border-bottom: 1px solid rgba(17,17,17,.08); margin-bottom: 4px; }
.topnav-account b { display: block; font-size: 13px; font-weight: 900; }
.topnav-account span { display: block; margin-top: 3px; font-size: 11px; font-weight: 800; color: var(--v-muted); }

/* ============ 账单/用量 ============ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { border: 1px solid var(--v-line); border-radius: 8px; background: #fff; padding: 18px 20px; }
.stat-card small { display: block; color: var(--v-muted); font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.stat-card b { display: block; font-family: var(--v-disp); font-size: 28px; line-height: 1.1; margin-bottom: 4px; }
.stat-ico { width: 34px; height: 34px; border-radius: 8px; background: rgba(17,17,17,.05); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-ico svg { width: 17px; height: 17px; fill: none; stroke: #3a3a34; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-sub { font-size: 11px; color: var(--v-muted); font-weight: 800; }
.stat-sub.up { color: #22a760; }
.stat-sub.down { color: #22a760; }

.row-num { color: var(--v-muted); font-size: 13px; font-weight: 900; width: 28px; text-align: center; }
.model-cell { display: flex; align-items: center; gap: 10px; }
.model-av { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.chart-card { margin-top: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; height: 100%; justify-content: flex-end; }
.bar-col span { font-size: 10px; color: var(--v-muted); font-weight: 800; }
.bar { width: 100%; background: rgba(17,17,17,.15); border-radius: 3px 3px 0 0; }
.bar.is-today { background: var(--v-ink); }
.chart-toggle { display: flex; border: 1px solid rgba(17,17,17,.2); border-radius: 6px; overflow: hidden; }

/* ============ 充值/余额 ============ */
.topup-view-head { align-items: flex-end; }
.topup-view-head h1 { font-size: 27px !important; }
.topup-kicker { margin: 0 0 7px !important; color: var(--v-red) !important; font-family: var(--v-cond); font-size: 11px !important; font-weight: 900 !important; }
.topup-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.topup-balance-panel { min-height: 430px; display: flex; flex-direction: column; padding: 24px; border: 1px solid #111; border-radius: 8px; background: #111; color: #fff; }
.topup-balance-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 900; }
.topup-balance-heading svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.topup-stats { grid-template-columns: 1fr 1fr !important; gap: 0 !important; margin: 52px 0 0 !important; }
.topup-stats .stat-card { min-width: 0; padding: 18px 0 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #fff; box-shadow: none !important; }
.topup-stats .stat-card:first-child { grid-column: 1 / -1; padding: 0 0 28px; border-bottom: 1px solid rgba(255,255,255,.18) !important; }
.topup-stats .stat-card:nth-child(2) { padding-right: 14px; border-right: 1px solid rgba(255,255,255,.18) !important; }
.topup-stats .stat-card:nth-child(3) { padding-left: 18px; }
.topup-stats .stat-card small { margin-bottom: 10px; color: rgba(255,255,255,.58); font-size: 11px; }
.topup-stats .stat-card b { margin: 0; color: #fff; font-size: 21px; overflow-wrap: anywhere; }
.topup-stats .stat-card:first-child b { font-size: 42px; }
.topup-stats .stat-card > span { display: block; margin-top: 7px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 800; }
.topup-balance-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 26px; color: rgba(255,255,255,.48); font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 800; }
.topup-recharge-panel { min-width: 0; padding: 24px; border-radius: 8px !important; }
.topup-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.topup-panel-head > div { display: flex; align-items: center; gap: 10px; }
.topup-panel-head h2 { margin: 0; font-size: 14px; font-weight: 900; }
.topup-panel-head > small { color: var(--v-muted); font-size: 10px; font-weight: 900; }
.topup-step { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--v-ink); border-radius: 50%; font-family: var(--v-cond); font-size: 10px; font-weight: 900; }
.topup-form { display: flex; flex-direction: column; gap: 0; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.amount-chip { min-height: 58px; padding: 0 12px; border: 1px solid rgba(17,17,17,.16); border-radius: 6px; background: #fff; color: var(--v-ink); font-family: var(--v-disp); font-size: 15px; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.amount-chip:hover { border-color: var(--v-ink); }
.amount-chip.is-on { border-color: var(--v-ink); background: var(--v-ink); color: #fff; }
/* 自定义金额就占「自定义」旁边那一格，和金额按钮同宽同高，
   不再是横跨整行的长条（宽屏上会被拉到一千多像素）。 */
.topup-custom-panel { display: flex; align-items: center; min-height: 58px; padding: 0; border: 0; background: none; }
.topup-custom-panel[hidden] { display: none; }
.topup-custom-panel > div { position: relative; display: flex; align-items: stretch; width: 100%; }
/* ¥ 不再是独立的小框（和输入框拼在一起显局促），改成落在输入框内部的前缀符号 */
.topup-custom-panel > div > span {
  position: absolute; left: 14px; top: 0; bottom: 0; z-index: 1;
  display: inline-flex; align-items: center;
  font-family: var(--v-disp); font-size: 15px; color: var(--v-muted); pointer-events: none;
}
.topup-custom-panel input {
  flex: 1 1 auto; min-width: 0; height: 58px; padding: 0 14px 0 34px;
  border: 1px solid var(--v-line); border-radius: 6px;
  background: #fff; color: var(--v-ink); font: inherit; font-size: 14px; font-weight: 800; outline: none;
}
.topup-custom-panel input:focus { border-color: var(--v-ink); }
.topup-custom-panel.is-invalid input { border-color: #c83d32; }
.topup-custom-panel input::-webkit-outer-spin-button,
.topup-custom-panel input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.topup-custom-panel input[type=number] { appearance: textfield; }
.topup-custom-panel > small { position: absolute; margin-top: 64px; color: #a62e27; font-size: 10px; font-weight: 800; }
.topup-payment-head { margin: 24px 0 14px; padding-top: 22px; border-top: 1px solid var(--v-line); }
/* 支付方式数量由后台配置决定，写死 3 列会在只有 2 个时右边空出一格 */
.pay-methods-row { display: flex; flex-wrap: wrap; gap: 9px; min-height: 54px; }
.pay-method { flex: 1 1 220px; }
.pay-method { position: relative; min-width: 0; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid rgba(17,17,17,.16); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.pay-method::after { content: ""; width: 8px; height: 8px; margin-left: auto; border: 1px solid rgba(17,17,17,.35); border-radius: 50%; background: #fff; }
.pay-method.is-on { border-color: var(--v-ink); box-shadow: inset 0 0 0 1px var(--v-ink); }
.pay-method.is-on::after { border-color: var(--v-ink); background: var(--v-ink); box-shadow: inset 0 0 0 2px #fff; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: #3a3a34; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin: 0; }
.pay-method-empty { grid-column: 1 / -1; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px dashed var(--v-line); border-radius: 6px; color: var(--v-muted); font-size: 11px; font-weight: 800; }
.pay-method-empty svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sub-pay-mask { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: 16px; background: rgba(17,17,17,.42); }
.sub-pay-dialog { width: min(420px, 100%); border: 1px solid rgba(17,17,17,.14); border-radius: 6px; background: var(--v-paper); box-shadow: 0 24px 60px rgba(17,17,17,.22); }
.sub-pay-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--v-line); color: var(--v-ink); font-size: 14px; }
.sub-pay-close { width: 28px; height: 28px; border: 0; background: transparent; color: var(--v-muted); font-size: 22px; cursor: pointer; }
.sub-pay-options { display: grid; gap: 9px; padding: 18px 20px 8px; }
.sub-pay-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 12px 20px 20px; }
.sub-pay-actions .v-btn { min-width: 76px; }
.topup-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--v-line); }
.topup-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; border: 1px solid var(--v-line); border-radius: 6px; background: rgba(17,17,17,.025); }
.topup-summary > span { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 13px; }
.topup-summary > span + span { border-left: 1px solid var(--v-line); }
.topup-summary small { color: var(--v-muted); font-size: 9px; font-weight: 900; }
.topup-summary b { display: block; min-width: 0; color: var(--v-ink); font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topup-footer .v-btn.primary { min-width: 164px; min-height: 58px; height: auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 6px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.topup-footer .v-btn.primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topup-error { grid-column: 1 / -1; margin: 0; padding: 10px 13px; border: 1px solid rgba(200,61,50,.35); border-radius: 6px; background: rgba(200,61,50,.06); color: #a62e27; font-size: 12px; font-weight: 700; line-height: 1.5; }
.topup-error[hidden] { display: none; }
.topup-history-panel { padding: 18px 22px 12px; border-radius: 8px !important; overflow-x: auto; }
.topup-history-panel .section-head { margin-bottom: 8px; }
.topup-history-panel .section-head > div:first-child { display: grid; gap: 3px; }
.topup-history-panel .section-head > div:first-child > small { color: var(--v-muted); font-size: 10px; font-weight: 700; }
.topup-history-panel .v-table th { padding-top: 13px; }
.topup-history-panel .v-table td { height: 48px; }

@media (max-width: 1100px) {
  .topup-layout { grid-template-columns: 1fr; }
  .topup-balance-panel { min-height: 320px; }
  .topup-stats { margin-top: 34px !important; }
}

@media (max-width: 700px) {
  .topup-view-head { align-items: flex-start; }
  .topup-layout { gap: 12px; }
  .topup-balance-panel, .topup-recharge-panel { padding: 20px; }
  .amount-grid, .pay-methods-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topup-footer { grid-template-columns: 1fr; }
  .topup-footer .v-btn.primary { min-height: 52px; width: 100%; }
  .topup-history-panel .section-head { align-items: flex-start; gap: 12px; }
  .topup-history-panel .tab-pills { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 440px) {
  .topup-balance-panel { min-height: 300px; }
  .topup-stats .stat-card:first-child b { font-size: 36px; }
  .topup-summary { grid-template-columns: 1fr; }
  .topup-summary > span { flex-direction: row; align-items: center; justify-content: space-between; }
  .topup-summary > span + span { border-left: 0; border-top: 1px solid var(--v-line); }
  .topup-custom-panel > div { max-width: none; }
  .topup-custom-panel .v-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

/* ============ 兑换码弹窗 ============ */
.rd-modal { width: min(440px, calc(100vw - 32px)); }
.rd-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.rd-input { text-transform: uppercase; letter-spacing: .04em; }
.rd-body .km-hint { margin: -4px 0 2px; }
.rd-body .v-btn.block { width: 100%; justify-content: center; margin-top: 2px; }
.rd-ok { width: 46px; height: 46px; margin: 6px auto 2px; border-radius: 50%; background: rgba(79,157,115,.14); display: flex; align-items: center; justify-content: center; }
.rd-ok svg { width: 24px; height: 24px; fill: none; stroke: #4f9d73; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rd-ok-title { text-align: center; font-weight: 900; font-size: 17px; }
.rd-ok-sub { text-align: center; font-size: 13px; color: var(--v-muted); }
.rd-ok-sub b { color: var(--v-ink); font-weight: 900; }

/* ============ 发票 ============ */
.inv-notice { font-size: 12px; color: var(--v-muted); margin: 0 0 18px; line-height: 1.6; }
.inv-form { display: flex; flex-direction: column; gap: 14px; }
.inv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inv-row .full { grid-column: 1 / -1; }
.inv-field { display: flex; flex-direction: column; gap: 6px; }
.inv-field label { font-size: 12px; font-weight: 900; color: #55544e; }

.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 520px; border: 1px solid var(--v-line); border-radius: 8px; overflow: hidden; background: #fff; }
.account-identity { padding: 32px 28px; border-right: 1px solid var(--v-line); background: #fafaf7; display: flex; flex-direction: column; align-items: flex-start; }
.acct-avatar-preview { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #111; color: #fff; font-size: 30px; font-weight: 900; }
.acct-avatar-preview img, .avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.account-identity-name { width: 100%; margin-top: 18px; min-width: 0; }
.account-identity-name h2 { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.account-identity-name p { margin: 6px 0 0; color: var(--v-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.acct-avatar-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.acct-avatar-buttons .v-btn { display: inline-flex; align-items: center; gap: 7px; }
.acct-avatar-buttons .v-btn[hidden] { display: none !important; }
.acct-avatar-buttons svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-avatar-status { margin-top: 9px; color: var(--v-muted); font-size: 10px; font-weight: 700; line-height: 1.5; }
.account-avatar-status.is-error { color: #b3261e; }
.account-meta { width: 100%; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--v-line); }
.account-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--v-line); }
.account-meta dt { color: var(--v-muted); font-size: 11px; font-weight: 800; }
.account-meta dd { margin: 0; max-width: 150px; font-size: 11px; font-weight: 900; text-align: right; overflow-wrap: anywhere; }
.account-settings { min-width: 0; padding: 0 32px 32px; }
.account-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--v-line); }
.account-tab { position: relative; min-height: 58px; padding: 0; border: 0; background: transparent; color: var(--v-muted); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.account-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.account-tab:hover { color: var(--v-ink); }
.account-tab.is-active { color: var(--v-ink); }
.account-tab.is-active::after { background: var(--v-ink); }
.account-panel { padding-top: 30px; }
.account-panel[hidden] { display: none !important; }
.account-panel-head { margin-bottom: 22px; }
.account-panel-head h2 { margin: 0; font-size: 17px; }
.account-form { max-width: 720px; gap: 18px; }
.account-form-actions { display: flex; justify-content: flex-start; padding-top: 4px; }
.account-form .v-input[readonly] { background: #f4f4f0; color: #77766f; cursor: default; }

@media (max-width: 820px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-identity { border-right: 0; border-bottom: 1px solid var(--v-line); padding: 24px; }
  .account-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .account-meta div { display: block; border-bottom: 0; }
  .account-meta dd { margin-top: 5px; max-width: none; text-align: left; }
}

@media (max-width: 560px) {
  .account-layout { border-left: 0; border-right: 0; border-radius: 0; margin-left: -22px; margin-right: -22px; }
  .account-identity { padding: 22px; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .acct-avatar-preview { width: 76px; height: 76px; flex-basis: 76px; font-size: 24px; }
  .account-identity-name { margin-top: 0; }
  .acct-avatar-buttons, .account-avatar-status, .account-meta { grid-column: 1 / -1; }
  .acct-avatar-buttons { margin-top: 18px; }
  .account-meta { grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 20px; }
  .account-settings { padding: 0 22px 26px; }
  .account-tabs { gap: 20px; overflow-x: auto; }
  .account-tab { white-space: nowrap; }
  .account-panel { padding-top: 24px; }
  .view[data-view="account"] .inv-row { grid-template-columns: 1fr; }
  .view[data-view="account"] .inv-row .full { grid-column: auto; }
}
.inv-apply { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: end; }
.inv-avail { padding: 16px 20px; border: 1px solid var(--v-line); border-radius: 8px; background: rgba(17,17,17,.03); }
.inv-avail small { display: block; font-size: 12px; font-weight: 800; color: var(--v-muted); margin-bottom: 6px; }
.inv-avail b { font-family: var(--v-disp); font-size: 28px; }
.inv-selectors { display: flex; flex-direction: column; gap: 8px; }
.tbl-link { font-size: 12px; font-weight: 900; color: var(--v-ink); text-decoration: none; }

/* 响应式：窄屏收起侧栏区 */
@media (max-width: 1200px) {
  .chat-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .chat-params { display: none; }
  .studio-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .gallery-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 侧边栏收起态（定稿） ============ */
.collapse-btn { display: flex; align-items: center; justify-content: center; }
.collapse-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sidebar.is-collapsed { width: 64px !important; }
.sidebar.is-collapsed .side-top { justify-content: center !important; padding: 0 !important; }
.sidebar.is-collapsed .console-nav p {
  opacity: 1 !important;
  width: 20px; height: 1px !important;
  margin: 10px auto !important; padding: 0 !important;
  background: rgba(17, 17, 17, .14);
  font-size: 0 !important; line-height: 0;
  overflow: hidden;
}
.sidebar.is-collapsed .console-nav section:first-child p { display: none !important; }
.sidebar.is-collapsed .console-nav a {
  width: 40px !important; height: 40px !important;
  padding: 0 !important; margin: 2px auto !important;
  justify-content: center !important;
  border-radius: 10px !important;
}
.sidebar.is-collapsed .console-nav a.is-active { border-radius: 10px !important; }
.sidebar.is-collapsed .nav-text { display: none !important; }
.sidebar.is-collapsed .console-nav .nav-ico { margin: 0 !important; }

/* 收起态 tooltip */
.nav-tip {
  position: fixed; z-index: 200;
  transform: translateY(-50%);
  background: #111; color: #fff;
  padding: 5px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
  pointer-events: none;
  opacity: 0; transition: opacity .12s ease;
}
.nav-tip::before {
  content: ""; position: absolute; left: -4px; top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent; border-left: none; border-right: 4px solid #111;
}
.nav-tip.is-show { opacity: 1; }

/* ============ 弹窗体系（popover 规范） ============ */
.lf-item { position: relative; }
.lf-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-left: 2px; opacity: .55; }

.pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 80;
  background: #fff;
  border: 1px solid #e8e8e0; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, .12);
}
.pop[hidden] { display: none; }

/* 下拉选择 */
.pop-menu { min-width: 176px; padding: 6px; }
.pop-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; padding: 8px 11px;
  border: 0; background: none; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 700; color: #1f1f1c;
  cursor: pointer; text-align: left; white-space: nowrap;
}
.pop-opt:hover { background: #f4f4ef; }
.pop-opt.is-on { font-weight: 900; }
.pop-opt.is-on::after {
  content: ""; width: 10px; height: 6px; flex: none;
  border-left: 2px solid #111; border-bottom: 2px solid #111;
  transform: rotate(-45deg) translateY(-1px);
}

/* 日期范围选择器 */
.pop-date { min-width: 560px; }
.dp-body { display: flex; }
.dp-quick { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid #ecece6; }
.dp-quick button {
  padding: 7px 14px; border: 0; background: none; border-radius: 8px;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #3a3a34;
  cursor: pointer; text-align: left; white-space: nowrap;
}
.dp-quick button:hover { background: #f4f4ef; }
.dp-quick button.is-on { background: #111; color: #fff; }

.dp-cals { display: flex; gap: 22px; padding: 14px 16px; }
.dp-cal { width: 226px; }
.dp-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; font-weight: 900; }
.dp-nav {
  width: 26px; height: 26px; border: 0; background: none; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #55544e;
}
.dp-nav:hover { background: #f4f4ef; }
.dp-nav svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dp-grid { display: grid; grid-template-columns: repeat(7, 32px); justify-content: center; }
.dp-wd { height: 26px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: rgba(17, 17, 17, .4); }
.dp-day {
  height: 32px; border: 0; background: none;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #1f1f1c;
  cursor: pointer; border-radius: 50%;
}
.dp-day:hover { background: #f1f1ed; }
.dp-day.is-mute { color: rgba(17, 17, 17, .22); pointer-events: none; }
.dp-day.is-today:not(.is-start):not(.is-end) { box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .35); }
.dp-day.in-range { background: #f1f1ed; border-radius: 0; }
.dp-day.is-start, .dp-day.is-end { background: #111 !important; color: #fff; border-radius: 50%; }

.dp-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid #ecece6; }
.dp-label { font-size: 12px; font-weight: 800; color: #55544e; font-variant-numeric: tabular-nums; }
.dp-btns { display: flex; gap: 8px; }

/* ============ 对话页：会话列表收起 ============ */
.conv-collapse svg, .rail-expand svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.conv-collapse, .rail-expand { display: flex; align-items: center; justify-content: center; }

.chat2 { transition: grid-template-columns .26s cubic-bezier(.4, 0, .2, 1) !important; }
.chat2.rail-off { grid-template-columns: 0px minmax(0, 1fr) !important; }
.conv-rail { overflow: hidden; }
.chat2.rail-off .conv-rail { border-right: none; }
.chat2.rail-off .conv-top,
.chat2.rail-off .conv-scroll { opacity: 0; transition: opacity .12s ease; }

.rail-expand {
  width: 34px; height: 34px;
  border: 1px solid rgba(17, 17, 17, .2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #1f1f1c;
  margin-right: 2px;
}
.rail-expand:hover { background: #f4f4ef; border-color: rgba(17, 17, 17, .45); }
.rail-expand[hidden] { display: none; }

/* ============ 全站自定义下拉（原生 select 升级 + pill 触发器） ============ */
.ui-select {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(17, 17, 17, .2); border-radius: 6px;
  background: #fff; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: #1f1f1c;
  white-space: nowrap; box-sizing: border-box;
}
.ui-select:hover { border-color: rgba(17, 17, 17, .45); }
.ui-select.ui-block { display: flex; width: 100%; justify-content: space-between; }
.ui-select .ui-val { overflow: hidden; text-overflow: ellipsis; }
.ui-select .lf-chev { margin-left: auto; flex: none; }
.ui-native-hidden { display: none !important; }

.fin-filter-bar .ui-select { font-size: 12px; }

.ui-trigger { cursor: pointer; }
.model-sel.ui-trigger, .ctrl-pill.ui-trigger, .wt-sort.ui-trigger, .pg-size.ui-trigger { position: relative; }
.wt-sort .lf-chev, .pg-size .lf-chev { margin-left: 4px; vertical-align: middle; }
.ws-val { font-weight: 900; }

/* 悬浮层弹窗（fixed 定位，不被容器裁切） */
.pop.pop-layer { position: fixed !important; top: auto; left: auto; z-index: 120; } /* 必须压过 .km-modal 的 91，否则弹窗内下拉被盖住 */

/* ============ 对话页：对比模式开关激活态 ============ */
.chip-btn.is-on { background: var(--v-red); border-color: var(--v-red); color: #fff; }
.chip-btn.is-on .mini-switch { background: rgba(255, 255, 255, .35); border-color: transparent; }
.chip-btn.is-on .mini-switch::after { left: auto; right: 1px; background: #fff; }

/* ============ 对话页：对比 3 列 ============ */
.compare-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; overflow: hidden; }
.compare-grid[hidden] { display: none; }
.chat-thread[hidden] { display: none !important; }
.cmp-col { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--v-line); border-radius: 12px; background: #fff; overflow: hidden; }
.cmp-head { padding: 12px; border-bottom: 1px solid var(--v-line); }
.cmp-head .model-sel { width: 100%; justify-content: space-between; font-size: 12px; }
.cmp-body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cmp-empty { margin: auto; color: var(--v-soft); font-size: 12px; font-weight: 700; }
.cmp-body .msg .bubble { max-width: 100%; font-size: 13px; }

/* ============ 对话页：技能面板 ============ */
.skills-wrap { position: relative; }
.pop-skills { top: calc(100% + 8px); right: 0; left: auto; width: 320px; padding: 10px; }
.sk-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid rgba(17, 17, 17, .15); border-radius: 8px; background: #faf9f5; }
.sk-search svg { width: 14px; height: 14px; fill: none; stroke: rgba(17, 17, 17, .45); stroke-width: 1.4; stroke-linecap: round; }
.sk-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 13px; outline: none; }
.sk-list { max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.sk-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; }
.sk-item:hover { background: #f4f4ef; }
.sk-ico { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(17, 17, 17, .05); border-radius: 8px; }
.sk-ico svg { width: 16px; height: 16px; fill: none; stroke: #3a3a34; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sk-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-tt b { font-size: 13px; font-weight: 800; }
.sk-tt small { font-size: 11px; color: var(--v-muted); }

/* ============ 通用图标（替代 Emoji 的描边 SVG） ============ */
.ei { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; flex: none; }
.copy-icon .ei { width: 13px; height: 13px; }
.whover .ei { width: 16px; height: 16px; }
.wstar .ei, .wt-fav .ei { width: 15px; height: 15px; }
.sc-usable .ei, .s-usable-toggle .ei { width: 13px; height: 13px; }
.wt-search .ei { width: 14px; height: 14px; }
.sc-enbtn .ei { width: 13px; height: 13px; }

/* ============ 概览：按钮图标 + 余额卡充值按钮定位修复 ============ */
.btn-ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.page-actions button, .overview-redesign .page-actions button { display: inline-flex !important; align-items: center; gap: 6px; }

/* 余额卡「充值」按钮：从绝对定位改回文档流，与「账户余额」标签同行居中 */
.overview-redesign .balance-card .bal-head { position: relative; align-items: center !important; }
.overview-redesign .balance-card .bal-head button {
  position: static !important;
  top: auto !important; right: auto !important;
  display: inline-flex !important; align-items: center; gap: 6px;
  height: 32px !important; min-width: 0 !important; padding: 0 15px !important;
}

/* ============ 对话页：会话列表条目加时间 ============ */
.conv-item { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; }
.conv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { flex: none; font-size: 11px; font-weight: 700; color: var(--v-soft); font-variant-numeric: tabular-nums; }
.conv-item.is-on .conv-time { color: rgba(255, 255, 255, .6); }

/* ============ 生图：提示词库弹窗 ============ */
.plib-wrap { position: relative; }
.pop-plib { bottom: calc(100% + 8px); top: auto; right: 0; left: auto; width: 380px; padding: 10px; }
.plib-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid rgba(17,17,17,.15); border-radius: 8px; background: #faf9f5; }
.plib-search svg { width: 14px; height: 14px; fill: none; stroke: rgba(17,17,17,.45); stroke-width: 1.4; stroke-linecap: round; }
.plib-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 13px; outline: none; }
.plib-cats { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.plib-cat { padding: 5px 12px; border: 1px solid rgba(17,17,17,.15); border-radius: 14px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.plib-cat.is-on { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }

/* ── 提示词库弹层：个人/团队双 Tab + 统一卡片 ── */
.plib-tabs { display: flex; gap: 4px; margin: 8px 0; padding: 3px; border: 1px solid rgba(17,17,17,.12); border-radius: 10px; background: #f4f3ee; }
.plib-tab { flex: 1; padding: 7px 0; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--v-muted); cursor: pointer; }
.plib-tab.is-on { background: #fff; color: var(--v-ink); box-shadow: 0 1px 4px rgba(17,17,17,.10); }
.plib-card { display: flex; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; align-items: center; font: inherit; }
.plib-card:hover { background: #f4f4ef; }
.plib-thumb { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 9px; border: 1px solid rgba(17,17,17,.10); background-color: #f5f4ef; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.plib-thumb svg { width: 20px; height: 20px; stroke: rgba(17,17,17,.30); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.plib-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plib-card-main b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plib-card-main small { font-size: 11px; line-height: 1.5; color: var(--v-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.plib-card-tag { align-self: flex-start; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 8px; background: #efeee8; font-size: 10px; line-height: 1; font-weight: 800; color: var(--v-soft); }
/* 分类编辑：与搜索框同设计语言——小字标签 + 一体化输入组，保存内嵌 */
.plib-catedit2 { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.plib-catedit2 label { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--v-soft); }
.plib-catedit2 .field { flex: 1; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border: 1px solid rgba(17,17,17,.15); border-radius: 8px; background: #faf9f5; }
.plib-catedit2 .field input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 12px; outline: none; }
.plib-catedit2 .field .save { flex: 0 0 auto; padding: 4px 10px; border: 0; border-radius: 6px; background: var(--v-ink); color: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.plib-divider { height: 1px; margin: 10px 0 8px; background: rgba(17,17,17,.08); }
/* 分类一行收展 + 个人拖动排序 */
.plib-cats.collapsible { flex-wrap: nowrap; overflow: hidden; }
.plib-cats.collapsible.is-open { flex-wrap: wrap; }
.plib-cat-more { padding: 5px 10px; border: 1px solid rgba(17,17,17,.15); border-radius: 14px; background: #faf9f5; font: inherit; font-size: 12px; font-weight: 800; color: var(--v-soft); cursor: pointer; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; }
.plib-cat-more svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.plib-cat-draggable { cursor: grab; display: inline-flex; align-items: center; user-select: none; }
.plib-cat-draggable.is-dragging { opacity: .5; border-style: dashed; }
/* 手柄默认收起：淡灰小点在浅色胶囊里像一块空白，把文字挤得不居中；悬停再滑出提示可拖 */
.plib-cat-grip { width: 0; height: 10px; margin-right: 0; opacity: 0; overflow: hidden; stroke: rgba(17,17,17,.35); fill: none; stroke-width: 2; stroke-linecap: round; transition: width .12s ease, margin .12s ease, opacity .12s ease; }
.plib-cat-draggable:hover .plib-cat-grip, .plib-cat-draggable.is-dragging .plib-cat-grip { width: 10px; margin-right: 4px; opacity: 1; }
.plib-cat.is-on .plib-cat-grip { stroke: rgba(255,255,255,.6); }
/* 弹层底部「将当前输入加入提示词库」：替代原先歧义的五角星入口 */
.plib-add-current { margin-top: 8px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 0; border: 1px dashed rgba(17,17,17,.25); border-radius: 9px; background: #faf9f5; font: inherit; font-size: 12px; font-weight: 800; color: var(--v-ink); cursor: pointer; }
.plib-add-current:hover { border-color: var(--v-ink); }
.plib-add-current svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
/* 保存弹窗挂 body、fixed 定位：必须压过词库弹层（.pop-layer 120） */
.prompt-save-pop { z-index: 300; }
.plib-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.plib-row { display: flex; flex-direction: column; border-radius: 9px; }
.plib-row:hover { background: #f4f4ef; }
.plib-item { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; padding: 10px 7px 10px 11px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; }
.plib-item:hover { background: #f4f4ef; }
.plib-item b { font-size: 13px; font-weight: 800; }
.plib-item small { overflow: hidden; font-size: 11px; color: var(--v-muted); text-overflow: ellipsis; white-space: nowrap; }
.plib-expanded { padding: 0 11px 11px; }
.plib-content {
  max-height: 240px;
  overflow: auto;
  padding: 9px 10px;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.plib-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.plib-actions .v-btn { min-height: 30px; padding: 0 10px; font-size: 11px; }
.plib-actions svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-save-wrap { position: relative; display: inline-flex; flex: none; }
.prompt-save-pop {
  bottom: calc(100% + 8px);
  top: auto;
  right: 0;
  left: auto;
  width: 300px;
  padding: 12px;
}
.prompt-save-field { display: block; margin-bottom: 10px; }
.prompt-save-field > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 900; color: var(--v-muted); }
.prompt-save-field input {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid rgba(17,17,17,.18);
  border-radius: 6px;
  background: #fff;
  color: var(--v-ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.prompt-save-field input:focus { border-color: var(--v-ink); }
.prompt-save-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.prompt-save-cats button {
  padding: 4px 9px;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 999px;
  background: #fff;
  color: var(--v-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.prompt-save-cats button.is-on { border-color: var(--v-ink); background: var(--v-ink); color: #fff; }
.prompt-save-actions { display: flex; justify-content: flex-end; gap: 7px; padding-top: 2px; }
.prompt-save-dest button.is-on { border-color: var(--v-ink); background: var(--v-ink); color: #fff; }
.prompt-save-thumbrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 700; color: var(--v-soft); }
.prompt-save-thumbrow .tp-thumb { width: 40px; height: 40px; }
.prompt-save-actions .v-btn { min-height: 32px; padding: 0 12px; font-size: 11px; }

.batch-prompt { cursor: pointer; }
.batch-prompt.is-expanded {
  white-space: pre-wrap;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}
.batch-prompt-actions {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.batch-prompt-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(17,17,17,.18);
  border-radius: 6px;
  background: #fff;
  color: var(--v-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.batch-prompt-copy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ Skills 市场：详情抽屉 ============ */
.scard2 { cursor: pointer; }
.sk-mask { position: fixed; inset: 0; z-index: 190; background: rgba(17,17,17,.28); }
.sk-mask[hidden] { display: none; }
.sk-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: 440px; max-width: 92vw;
  background: #fff; border-left: 1px solid var(--v-line);
  box-shadow: -12px 0 40px rgba(17,17,17,.12);
  display: flex; flex-direction: column;
  padding: 26px 26px 22px;
  overflow: auto;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
}
.sk-drawer:not([hidden]) { display: flex; }
.sk-drawer.is-open { transform: none; }
.sk-dclose { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #55544e; }
.sk-dclose:hover { background: #f1f0ea; }
.sk-dclose svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.sk-dbody { display: flex; flex-direction: column; flex: 1; }
.skd-name { font-family: var(--v-disp); font-size: 22px; line-height: 1.15; margin: 4px 44px 12px 0; }
.skd-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; font-weight: 800; color: var(--v-muted); margin-bottom: 12px; }
.skd-meta span { display: inline-flex; align-items: center; gap: 5px; }
.skd-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skd-avail { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-bottom: 20px; }
.skd-avail svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skd-avail.on { color: #1f9c6e; background: rgba(47,214,176,.14); }
.skd-avail.off { color: #77766f; background: rgba(17,17,17,.06); }

.skd-h { font-size: 12px; font-weight: 900; color: #55544e; letter-spacing: .04em; margin: 4px 0 8px; text-transform: uppercase; }
.skd-p { margin: 0 0 20px; font-size: 13px; line-height: 1.75; color: #3a3a34; }
.skd-cap { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #3a3a34; margin-bottom: 9px; }
.skd-cap svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: #1f9c6e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skd-caps { margin-bottom: 20px; }

.skd-files { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.skd-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--v-line); border-radius: 9px; font-size: 13px; font-weight: 700; }
.skd-file svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--v-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skd-file .skd-sz { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--v-soft); }

.skd-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; }
.skd-actions .v-btn { flex: 1; justify-content: center; }
.skd-iconbtn { width: 42px; flex: none; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.skd-iconbtn svg, .skd-actions .v-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skd-actions .v-btn { display: inline-flex; align-items: center; gap: 7px; }

/* ============ 资讯中心：整页阅读视图 ============ */
.acard2 { cursor: pointer; }
.hot-item2 { cursor: pointer; border-radius: 8px; }
.hot-item2:hover { background: #f4f4ef; }
.news-reader[hidden] { display: none; }
.news-reader { max-width: 760px; }
.news-back { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; margin-bottom: 20px; border: 1px solid rgba(17,17,17,.18); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.news-back:hover { border-color: var(--v-ink); }
.news-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nr-cat { display: inline-block; padding: 3px 10px; border-radius: 4px; background: rgba(17,17,17,.06); font-size: 11px; font-weight: 900; color: #55544e; }
.nr-title { font-family: var(--v-disp); font-size: 28px; line-height: 1.25; margin: 14px 0 10px; }
.nr-meta { display: flex; gap: 16px; font-size: 12px; font-weight: 800; color: var(--v-muted); margin-bottom: 18px; }
.nr-meta span { display: inline-flex; align-items: center; gap: 5px; }
.nr-meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nr-cover { height: 260px; border-radius: 14px; margin-bottom: 20px; }
.nr-p { margin: 0 0 16px; font-size: 15px; line-height: 1.85; color: #2c2c27; }

.nr-like { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; margin: 6px 0 26px; border: 1px solid rgba(17,17,17,.18); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.nr-like:hover { border-color: var(--v-ink); }
.nr-like.on { background: rgba(242,55,29,.08); border-color: var(--v-red); color: var(--v-red); }
.nr-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nr-like.on svg { fill: currentColor; }

.nr-cmts { border-top: 1px solid var(--v-line); padding-top: 22px; }
.nr-cmts h4 { margin: 0 0 16px; font-size: 15px; font-weight: 900; }
.nr-cmt { display: flex; gap: 12px; margin-bottom: 18px; }
.nr-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg,#d8d6cc,#b7b5aa); }
.nr-cmt-b { flex: 1; }
.nr-cname { font-size: 13px; font-weight: 900; margin-right: 8px; }
.nr-ctime { font-size: 11px; font-weight: 700; color: var(--v-soft); }
.nr-ctext { margin-top: 4px; font-size: 14px; line-height: 1.6; color: #3a3a34; }
.nr-cinput { display: flex; gap: 10px; margin-top: 8px; }
.nr-cinput input { flex: 1; padding: 11px 14px; border: 1px solid rgba(17,17,17,.2); border-radius: 999px; font: inherit; font-size: 14px; outline: none; }
.nr-cinput input:focus { border-color: var(--v-ink); }
.nr-csend { width: 42px; flex: none; border: 0; border-radius: 50%; background: var(--v-ink); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nr-csend svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.news-layout[hidden] { display: none !important; }

/* 资讯阅读态：收起列表 chrome + 阅读内容居中 */
.view[data-view="news"].reading .view-head,
.view[data-view="news"].reading .filter-tabs,
.view[data-view="news"].reading .works-toolbar { display: none !important; }
.news-reader { margin: 0 auto; }

/* ============ 模型广场：详情抽屉（复用 sk-drawer 视觉） ============ */
.mkt-card { cursor: pointer; }
.mdl-idrow { display: flex; align-items: center; gap: 12px; margin: 2px 40px 14px 0; }
.mdl-logo { width: 44px; height: 44px; flex: none; border-radius: 12px; color: #fff; font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.mdl-idname { font-family: var(--v-disp); font-size: 20px; line-height: 1.1; }
.mdl-iddev { font-size: 12px; font-weight: 800; color: var(--v-muted); margin-top: 3px; }
.mdl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.mdl-type { padding: 3px 9px; border-radius: 4px; background: var(--v-ink); color: #fff; font-size: 11px; font-weight: 900; }
.mdl-cap { padding: 3px 9px; border-radius: 4px; background: rgba(17,17,17,.06); color: #55544e; font-size: 11px; font-weight: 800; }
.mdl-pricebox { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; margin-bottom: 20px; border: 1px solid var(--v-line); border-radius: 12px; background: rgba(17,17,17,.02); }
.mdl-pcell small { display: block; font-size: 11px; font-weight: 800; color: var(--v-muted); margin-bottom: 4px; }
.mdl-pcell b { font-family: var(--v-disp); font-size: 18px; }
.mdl-code { position: relative; margin-bottom: 20px; }
.mdl-code pre { margin: 0; padding: 14px 44px 14px 14px; border-radius: 10px; background: #1c1c19; color: #e8e8e0; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.mdl-code .tok-k { color: #7cc4ff; }
.mdl-code .tok-s { color: #9be29b; }
.mdl-copy { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 7px; background: rgba(255,255,255,.1); color: #e8e8e0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mdl-copy:hover { background: rgba(255,255,255,.2); }
.mdl-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mdl-prov { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--v-line); border-radius: 10px; margin-bottom: 8px; }
.mdl-prov b { font-size: 13px; font-weight: 800; }
.mdl-prov .mdl-ppr { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--v-muted); }
.mdl-prov .mdl-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a760; flex: none; }

/* 模型卡去掉顶部彩色横条 */
.mkt-bar { display: none !important; }

/* ============ 模型广场：Metro 磁贴（等大反色混排） ============ */
.mp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mp-h1 { font-family: var(--v-disp); font-size: clamp(24px,2.2vw,32px); margin: 0; line-height: 1; }
.mp-count { margin: 6px 0 0; font-size: 12px; font-weight: 800; color: var(--v-muted); }
.mp-count b { color: var(--v-ink); }
.mp-tools { display: flex; gap: 8px; }
.mp-search { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid rgba(17,17,17,.15); border-radius: 8px; padding: 0 12px; width: 200px; }
.mp-search svg { width: 14px; height: 14px; color: #a3a299; flex: none; }
.mp-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 13px; outline: none; height: 36px; }
.mp-sort { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid rgba(17,17,17,.18); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.mp-sort svg { width: 15px; height: 15px; }

.mp-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-chip { padding: 6px 14px; border: 1px solid rgba(17,17,17,.15); border-radius: 999px; background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.mp-chip.is-on { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }
.mp-chip .n { font-size: 10px; opacity: .55; margin-left: 3px; }
.mp-chip.is-on .n { opacity: .7; }

.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 1fr; gap: 8px; align-items: stretch; }
.mp-tile { position: relative; height: 100%; box-sizing: border-box; padding: 16px; display: flex; flex-direction: column; cursor: pointer; background: #fff; border: 1px solid rgba(17,17,17,.1); border-radius: 0; transition: border-color .12s; }
.mp-tile:hover { border-color: rgba(17,17,17,.4); }
.mp-rib { position: absolute; top: 0; left: 0; font-size: 10px; font-weight: 900; background: var(--v-ink); color: #fff; padding: 2px 9px; }
.mp-corner { position: absolute; top: 15px; right: 16px; font-size: 10px; font-weight: 900; color: var(--v-red); background: rgba(242,55,29,.1); padding: 2px 7px; }
.mp-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 11px; }
.mp-let { width: 32px; height: 32px; flex: none; background: var(--v-ink); color: #fff; font-family: var(--v-disp); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.mp-id { min-width: 0; padding-right: 40px; }
.mp-name { font-size: 14px; font-weight: 900; line-height: 1.3; }
.mp-modid { font-size: 11px; color: var(--v-muted); font-family: ui-monospace, Menlo, monospace; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-usage { font-size: 11px; font-weight: 800; color: var(--v-muted); margin-bottom: 8px; }
.mp-usage b { font-family: var(--v-disp); color: var(--v-ink); font-size: 12px; }
.mp-desc { font-size: 12px; line-height: 1.6; color: #55544e; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.mp-io { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; padding-top: 12px; border-top: 1px solid rgba(17,17,17,.08); font-size: 11px; }
.mp-io > div { display: flex; align-items: center; gap: 6px; }
.mp-io .k { color: var(--v-muted); font-weight: 800; }
.mp-io .v { font-weight: 900; margin-left: auto; }
.mp-io .tt { margin-left: auto; display: flex; gap: 3px; }
.mp-io .tt .mp-t { font-size: 9px; font-weight: 900; padding: 1px 5px; background: var(--v-ink); color: #fff; }
.mp-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(17,17,17,.08); font-size: 11px; font-weight: 800; color: var(--v-muted); }
.mp-health { display: flex; gap: 1.5px; align-items: flex-end; margin-left: auto; height: 14px; }
.mp-health span { width: 3px; border-radius: 1px; }

.mp-tile.ink { background: var(--v-ink); border-color: var(--v-ink); color: #fff; }
.mp-tile.ink .mp-let { background: #fff; color: var(--v-ink); }
.mp-tile.ink .mp-modid, .mp-tile.ink .mp-usage, .mp-tile.ink .mp-io .k, .mp-tile.ink .mp-foot { color: #b8b7ae; }
.mp-tile.ink .mp-usage b, .mp-tile.ink .mp-io .v { color: #fff; }
.mp-tile.ink .mp-desc { color: #c9c8c0; }
.mp-tile.ink .mp-rib { background: #fff; color: var(--v-ink); }
.mp-tile.ink .mp-io, .mp-tile.ink .mp-foot { border-top-color: rgba(255,255,255,.15); }
.mp-tile.ink .mp-io .tt .mp-t { background: #fff; color: var(--v-ink); }

.mp-tile.promo { background: var(--v-red); border-color: var(--v-red); color: #fff; justify-content: center; }
.mp-tile.promo .mp-rib { background: #fff; color: var(--v-red); }
.mp-promo-b { font-family: var(--v-disp); font-size: 20px; }
.mp-promo-s { font-size: 11px; opacity: .9; margin-top: 4px; font-weight: 700; }

.mp-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--v-soft); font-size: 13px; font-weight: 700; }

/* ============ 模型广场：整页详情（对标 OpenRouter 信息架构） ============ */
.mp-detail[hidden] { display: none; }
.view[data-view="models"].mp-reading .mp-top,
.view[data-view="models"].mp-reading .mp-chips,
.view[data-view="models"].mp-reading .mp-grid { display: none !important; }

.mp-back { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; margin-bottom: 20px; border: 1px solid rgba(17,17,17,.18); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.mp-back:hover { border-color: var(--v-ink); }
.mp-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.dh-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dh-logo { width: 42px; height: 42px; flex: none; background: var(--v-ink); color: #fff; font-family: var(--v-disp); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.dh-title { font-family: var(--v-disp); font-size: clamp(20px,1.9vw,26px); margin: 0; line-height: 1.12; }
.dh-id { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--v-muted); }
.dh-id .di { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; }
.dh-actions { display: flex; gap: 8px; flex: none; }
.dh-desc { max-width: 760px; font-size: 14px; line-height: 1.7; color: #3a3a34; margin: 0 0 22px; }

.dstat { display: flex; gap: 1px; background: rgba(17,17,17,.1); border: 1px solid rgba(17,17,17,.1); margin-bottom: 30px; }
.dstat-c { flex: 1 1 0; min-width: 0; background: #f7f7f3; padding: 13px 18px; }
.dstat-c small { display: block; font-size: 11px; font-weight: 700; color: var(--v-soft); margin-bottom: 5px; }
.dstat-c b { font-size: 14px; font-weight: 800; }

.dbody { display: grid; grid-template-columns: 148px minmax(0,1fr); gap: 32px; align-items: start; }
.danchor { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.danchor a { padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--v-muted); cursor: pointer; text-decoration: none; }
.danchor a:hover { background: #f1f0ea; color: var(--v-ink); }
.danchor a.is-on { background: var(--v-ink); color: #fff; }

.dsections { min-width: 0; }
.dsec { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--v-line); }
.dsec:last-child { border-bottom: 0; }
.dsec-h { font-family: var(--v-disp); font-size: 16px; margin: 0 0 6px; }
.dsec-p { font-size: 13px; color: var(--v-muted); line-height: 1.7; margin: 0 0 16px; }
/* 调用量柱图：柱子等分整个宽度而不是固定 6px 挤在左边，高度给足，
   顶部标最大值、底部标日期，鼠标悬停出数值气泡。 */
.mdchart { margin: 2px 0 10px; }
.mdchart-plot { position: relative; padding-top: 18px; }
.mdchart-peak { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--v-soft); letter-spacing: .02em; }
.mdchart-bars { display: flex; align-items: flex-end; gap: 6px; height: 168px; padding-bottom: 1px; border-bottom: 1px solid var(--v-line); }
.mdchart-col { position: relative; flex: 1 1 0; min-width: 0; max-width: 44px; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.mdchart-bar { width: 100%; min-height: 3px; background: var(--v-ink); border-radius: 3px 3px 0 0; opacity: .78; transition: opacity .12s ease; }
.mdchart-col:hover .mdchart-bar { opacity: 1; }
.mdchart-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 3px 7px; border-radius: 5px; background: var(--v-ink); color: #fff;
  font-size: 11px; line-height: 1.4; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
.mdchart-col:hover .mdchart-tip { opacity: 1; }
.mdchart-axis { display: flex; gap: 6px; margin-top: 7px; }
.mdchart-tick { flex: 1 1 0; min-width: 0; max-width: 44px; text-align: center; font-size: 11px; color: var(--v-soft); white-space: nowrap; }
.mdchart-empty { height: 168px; display: grid; place-items: center; border-bottom: 1px solid var(--v-line); color: var(--v-soft); font-size: 12px; }

.dp-table td, .dp-table th { padding: 12px 14px; }
.dp-unit { display: block; margin-top: 2px; color: var(--v-soft); font-size: 10px; font-weight: 700; }
.dp-tier-prices {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  min-width: 116px;
  vertical-align: middle;
}
.dp-tier-price {
  display: grid;
  grid-template-columns: minmax(58px, auto) auto;
  align-items: baseline;
  gap: 10px;
}
.dp-tier-price > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.dp-tier-price strong {
  color: var(--v-muted);
  font-size: 10px;
  font-weight: 850;
}
.dp-tier-price small {
  color: var(--v-soft);
  font-size: 9px;
  font-weight: 650;
}
.dp-tier-price b,
.dp-price-only {
  color: var(--v-ink);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.dp-tier-prices > em {
  color: var(--v-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.dp-dynamic {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--v-muted);
  font-size: 11px;
  font-weight: 800;
}
.dp-dynamic small {
  color: var(--v-soft);
  font-size: 9px;
  font-weight: 650;
}
/* 指标列在等服务端返回时的占位：淡一点，明确表示「还没到」而不是「没有数据」 */
.dp-pending { color: var(--v-soft); opacity: .5; }
.dp-name { display: flex; align-items: center; gap: 9px; font-weight: 900; }
.dp-dot { width: 7px; height: 7px; border-radius: 50%; background: #4f9d73; flex: none; }
.dp-num { font-family: ui-monospace, Menlo, monospace; }

.dprice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dprice-c { border: 1px solid var(--v-line); border-radius: 12px; padding: 18px; background: #fff; }
.dprice-c small { font-size: 11px; font-weight: 700; color: var(--v-soft); }
.dprice-c b { display: block; font-family: var(--v-disp); font-size: 22px; margin: 6px 0 16px; }
.dbars, .dact { display: flex; align-items: flex-end; gap: 2px; height: 56px; }
.dbars span, .dact span { flex: 1; background: rgba(17,17,17,.15); border-radius: 1.5px 1.5px 0 0; min-height: 2px; }
.dbars span.now { background: var(--v-ink); }
.dbars-x { display: block; margin-top: 10px; font-size: 11px; color: var(--v-soft); font-weight: 700; }
.dact span { background: rgba(17,17,17,.18); }
.dact span:last-child { background: var(--v-ink); }
.dact { height: 82px; gap: 3px; }

.dperf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dperf-c { border: 1px solid var(--v-line); border-radius: 10px; padding: 16px 18px; background: #fff; }
.dperf-c small { display: block; font-size: 11px; font-weight: 800; color: var(--v-muted); margin-bottom: 6px; }
.dperf-c b { font-family: var(--v-disp); font-size: 18px; }

.dup-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dup-pct { font-family: var(--v-disp); font-size: 26px; }
.dup-top span { font-size: 12px; color: var(--v-muted); font-weight: 800; }
.dup-strip { display: flex; gap: 2px; }
.dup-strip span { flex: 1; height: 26px; background: #4f9d73; border-radius: 1.5px; }
.dup-strip span.down { background: #d8564b; }

.dapps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dapp { display: flex; align-items: center; gap: 12px; border: 1px solid var(--v-line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.dapp-ic { width: 34px; height: 34px; flex: none; background: rgba(17,17,17,.06); font-family: var(--v-disp); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.dapp b { font-size: 13px; font-weight: 900; }
.dapp small { display: block; font-size: 11px; color: var(--v-muted); margin-top: 2px; }

/* ===== 创建密钥模态 ===== */
.km-mask { position: fixed; inset: 0; background: rgba(17,17,17,.42); z-index: 90; }
.km-mask[hidden] { display: none; }
.km-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--v-paper); border: 1px solid rgba(17,17,17,.14); border-radius: 16px; box-shadow: 0 24px 60px rgba(17,17,17,.22); z-index: 91; }
.km-modal[hidden] { display: none; }
.km-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 0; }
.km-title { font-family: var(--v-disp); font-size: 19px; margin: 0; }
.km-sub { font-size: 12.5px; color: var(--v-muted); margin: 6px 0 0; line-height: 1.6; }
.km-x { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--v-muted); }
.km-x:hover { background: rgba(17,17,17,.06); color: var(--v-ink); }
.km-x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.km-body { padding: 18px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; align-items: start; }
.km-field { display: block; margin: 0; min-width: 0; }
.km-col-full { grid-column: 1 / -1; }
.km-cal-cell { grid-row: span 1; }
.km-field > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 900; color: #3a3a34; }
.km-field > span em { font-style: normal; font-weight: 700; color: var(--v-soft); margin-left: 4px; }
.km-field .v-input { padding: 9px 12px; font-size: 13.5px; }
.km-seg { display: inline-flex; gap: 4px; padding: 3px; background: rgba(17,17,17,.05); border-radius: 9px; flex-wrap: wrap; }
.km-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--v-muted); cursor: pointer; }
.km-seg button:hover { color: var(--v-ink); }
.km-seg button.is-on { background: var(--v-ink); color: #fff; }
.km-extra { margin-top: 10px; }
.km-hint { font-size: 12px; color: var(--v-soft); line-height: 1.6; }
.km-access-field { padding: 14px; border: 1px solid var(--v-line); border-radius: 8px; background: rgba(255,255,255,.55); }
.km-access-field > .km-hint { margin-top: 8px; }
.km-access-field .km-seg { display: flex; width: fit-content; max-width: 100%; }
.km-model-picker { overflow: hidden; border: 1px solid var(--v-line); border-radius: 7px; background: #fff; }
.km-model-tools { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--v-line-soft); }
.km-model-search { min-width: 0; flex: 1; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--v-line); border-radius: 6px; background: #fff; }
.km-model-search svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--v-muted); stroke-width: 1.8; stroke-linecap: round; }
.km-model-search input { min-width: 0; width: 100%; height: 34px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--v-ink); font: inherit; font-size: 12px; }
.km-model-actions { display: flex; gap: 4px; }
.km-model-actions button { height: 34px; padding: 0 10px; border: 1px solid var(--v-line); border-radius: 6px; background: #fff; color: var(--v-muted); font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.km-model-actions button:hover { border-color: var(--v-ink); color: var(--v-ink); }
.km-model-summary { padding: 8px 11px; background: rgba(17,17,17,.025); color: var(--v-muted); font-size: 11px; font-weight: 800; }
.km-model-list { max-height: 190px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: 5px; }
.km-model-option { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 5px; cursor: pointer; }
.km-model-option:hover { background: var(--v-paper); }
.km-model-option input { width: 14px; height: 14px; flex: none; accent-color: var(--v-ink); }
.km-model-option span { min-width: 0; overflow: hidden; font-family: ui-monospace, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.km-model-empty { grid-column: 1 / -1; padding: 22px 12px; color: var(--v-soft); font-size: 12px; text-align: center; }
.km-inline { display: flex; align-items: center; gap: 8px; }
.km-inline .v-input { flex: 1; }
.km-prefix, .km-suffix { font-size: 13px; font-weight: 800; color: var(--v-muted); flex: none; }
.km-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 22px 22px; }
.km-foot .v-btn.block { flex: 1; }
/* 成功步骤 */
.km-keyrow { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 10px; }
.km-key { min-width: 0; min-height: 76px; box-sizing: border-box; padding: 16px; background: #fff; border: 1px solid rgba(17,17,17,.2); border-radius: 7px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; word-break: break-all; display: flex; align-items: center; }
.km-copy { min-width: 104px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid var(--v-ink); background: var(--v-ink); color: #fff; border-radius: 7px; font: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; }
.km-copy:hover { background: #000; }
.km-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.km-copy.done { background: #237a4b; border-color: #237a4b; }
.km-warn { grid-column: 1 / -1; display: flex; gap: 9px; margin-top: -2px; padding: 10px 12px; background: rgba(17,17,17,.035); border: 1px solid var(--v-line-soft); border-radius: 7px; font-size: 11.5px; line-height: 1.6; color: var(--v-muted); }
.km-warn svg { width: 15px; height: 15px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* 自绘日期选择（内联，两列布局右格） */
.km-date-read { margin-top: 10px; font-size: 12.5px; color: var(--v-muted); font-weight: 700; }
.km-date-read b { font-family: ui-monospace, Menlo, monospace; color: var(--v-ink); font-weight: 800; margin-left: 4px; }
.km-cal-cell > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 900; color: #3a3a34; }
.km-date-pop { background: #fff; border: 1px solid rgba(17,17,17,.14); border-radius: 12px; padding: 12px; }
.km-modal [hidden] { display: none !important; }

.account-security-block { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--v-line); }
.account-security-copy { display: grid; gap: 4px; }
.account-security-copy b { font-size: 14px; }
.account-security-copy span { color: var(--v-muted); font-size: 12px; font-weight: 700; }
.account-security-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.account-password-actions { align-items: center; gap: 14px; }
.account-reset-link { padding: 0; border: 0; background: transparent; color: var(--v-muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.account-reset-link:hover { color: var(--v-ink); text-decoration: underline; text-underline-offset: 3px; }
.twofa-modal { width: min(560px, calc(100vw - 32px)); }
.twofa-modal-body { display: block; }
.twofa-guide { margin-bottom: 18px; padding: 13px 15px; border-left: 3px solid var(--v-ink); background: rgba(17,17,17,.035); }
.twofa-guide b { font-size: 13px; }
.twofa-guide ol { margin: 9px 0 0; padding-left: 20px; color: var(--v-muted); font-size: 12px; line-height: 1.7; }
.twofa-setup-grid { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; }
.twofa-qr { width: 190px; height: 190px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--v-line); background: #fff; }
.twofa-qr img, .twofa-qr canvas { width: 168px !important; height: 168px !important; }
.twofa-details { display: grid; gap: 14px; }
.twofa-details p { margin: 0; color: var(--v-muted); font-size: 12px; line-height: 1.65; }
.twofa-secret { padding: 10px 12px; border: 1px solid var(--v-line); background: rgba(17,17,17,.03); font-family: ui-monospace, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.twofa-codes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.twofa-codes code { padding: 9px; border: 1px solid var(--v-line); background: rgba(17,17,17,.03); text-align: center; font-size: 12px; }
.twofa-verify { display: grid; gap: 9px; margin-top: 16px; }
.twofa-verify label { font-size: 12px; font-weight: 900; }

.pay-qr-modal { width: min(470px, calc(100vw - 32px)); border-radius: 8px; overflow: hidden; }
.pay-qr-modal .km-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--v-line); }
.pay-qr-modal .km-x:focus-visible { outline: 2px solid var(--v-ink); outline-offset: 2px; }
.pay-qr-kicker { margin: 0 0 6px; color: var(--v-red); font-family: var(--v-cond); font-size: 10px; font-weight: 900; }
.pay-qr-body { padding: 18px 22px 8px; }
.pay-qr-summary { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding: 15px 17px; border-radius: 6px; background: var(--v-ink); color: #fff; }
.pay-qr-summary small { display: block; margin-bottom: 6px; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 900; }
.pay-qr-amount b { color: #fff; font-family: var(--v-disp); font-size: 26px; line-height: 1; overflow-wrap: anywhere; }
.pay-qr-method { min-width: 90px; text-align: right; }
.pay-qr-method b { display: block; color: rgba(255,255,255,.88); font-size: 11px; font-weight: 900; }
.pay-qr-scan { display: grid; justify-items: center; padding: 24px 0 18px; }
.pay-qr-code { width: 204px; height: 204px; display: grid; place-items: center; padding: 9px; border: 1px solid var(--v-ink); background: #fff; }
.pay-qr-code img, .pay-qr-code canvas { display: block; width: 184px !important; height: 184px !important; object-fit: contain; }
.pay-qr-scan h3 { margin: 14px 0 0; font-size: 12px; font-weight: 900; }
.pay-qr-status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; min-height: 43px; padding: 0 12px; border: 1px solid var(--v-line); border-radius: 6px; background: rgba(17,17,17,.025); }
.pay-qr-status > span { width: 8px; height: 8px; border-radius: 50%; background: #d59b23; box-shadow: 0 0 0 4px rgba(213,155,35,.12); }
.pay-qr-status b { color: var(--v-ink); font-size: 10px; }
.pay-qr-status small { color: var(--v-muted); font-size: 9px; font-weight: 800; }
.pay-qr-status strong { margin-left: 3px; color: var(--v-ink); font-family: ui-monospace, Menlo, monospace; font-size: 9px; }
.pay-qr-status.is-success > span { background: #238653; box-shadow: 0 0 0 4px rgba(35,134,83,.12); }
.pay-qr-status.is-success b { color: #187143; }
.pay-qr-status.is-error > span { background: #c83d32; box-shadow: 0 0 0 4px rgba(200,61,50,.12); }
.pay-qr-status.is-error b { color: #a62e27; }
.pay-qr-order { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 10px; padding: 0 2px; }
.pay-qr-order small { color: var(--v-muted); font-size: 9px; font-weight: 900; }
.pay-qr-order code { min-width: 0; color: var(--v-muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-qr-foot { justify-content: flex-end; gap: 9px; padding: 14px 22px 20px; }
.pay-qr-foot .v-btn { min-width: 108px; min-height: 42px; justify-content: center; }

.endpoint-modal { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--v-line); border-radius: 6px; overflow: hidden; }
.endpoint-modal .km-head { align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--v-line); }
.endpoint-modal .km-title { color: var(--v-ink); }
.endpoint-modal .km-x:focus-visible { outline: 2px solid var(--v-ink); outline-offset: 2px; }
.endpoint-body { display: grid; gap: 0; padding: 0 20px 20px; }
.endpoint-section { min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--v-line); }
.endpoint-section:last-child { padding-bottom: 0; border-bottom: 0; }
.endpoint-section h3 { margin: 0 0 10px; color: var(--v-ink); font-size: 12px; font-weight: 900; }
.endpoint-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.endpoint-section-head h3 { margin: 0; }
.endpoint-copy-row { min-width: 0; display: flex; align-items: stretch; gap: 8px; }
.endpoint-copy-row > code { min-width: 0; flex: 1; display: flex; align-items: center; padding: 10px 12px; border: 1px solid var(--v-line); border-radius: 6px; background: #fff; overflow-wrap: anywhere; }
.endpoint-copy { flex: none; min-width: 72px; height: auto; min-height: 38px; padding: 0 14px; }
.endpoint-section pre { max-width: 100%; margin: 0; padding: 13px 14px; border: 1px solid var(--v-line); border-radius: 6px; background: rgba(17,17,17,.035); overflow-x: auto; }
.endpoint-section code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.65; }
.endpoint-tool-lines { min-width: 0; display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--v-line); border-radius: 6px; background: #fff; }
.endpoint-tool-lines code { min-width: 0; overflow-wrap: anywhere; }
.endpoint-section > small { display: block; margin-top: 9px; color: var(--v-muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 560px) {
  .account-security-block { align-items: flex-start; flex-direction: column; }
  .account-security-actions { width: 100%; justify-content: stretch; }
  .account-security-actions .v-btn { flex: 1; justify-content: center; }
  .account-password-actions { align-items: flex-start; flex-direction: column; }
  .twofa-setup-grid { grid-template-columns: 1fr; }
  .twofa-qr { margin: 0 auto; }
  .pay-qr-modal .km-head { padding: 16px 20px 14px; }
  .pay-qr-body { padding: 14px 18px 6px; }
  .pay-qr-summary { padding: 13px 14px; }
  .pay-qr-amount b { font-size: 23px; }
  .pay-qr-scan { padding: 20px 0 16px; }
  .pay-qr-code { width: 190px; height: 190px; }
  .pay-qr-code img, .pay-qr-code canvas { width: 170px !important; height: 170px !important; }
  .pay-qr-foot { display: grid; grid-template-columns: 1fr 1fr; }
  .pay-qr-foot { padding: 12px 18px 16px; }
  .endpoint-modal .km-head { padding: 16px; }
  .endpoint-body { padding: 0 16px 16px; }
  .endpoint-copy-row { align-items: stretch; }
  .endpoint-copy { min-width: 68px; padding: 0 10px; }
}

/* ===== 对话附件 ===== */
.attach-wrap { position: relative; display: inline-flex; }
.attach-btn svg, .attach-item svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pop-attach { bottom: calc(100% + 8px); top: auto; left: 0; width: 150px; padding: 6px; }
.attach-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 800; color: var(--v-ink); cursor: pointer; }
.attach-item:hover { background: rgba(17,17,17,.06); }
.attach-item svg { width: 17px; height: 17px; flex: none; }
.attach-preview { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 2px 8px; }
.attach-chip { position: relative; width: 58px; height: 58px; border: 1px solid var(--v-line); border-radius: 8px; overflow: hidden; background: #fff; }
.attach-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-remove { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(17,17,17,.76); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; line-height: 1; }
.bubble .msg-img { display: block; max-width: min(260px, 100%); border-radius: 8px; margin-top: 8px; border: 1px solid rgba(17,17,17,.12); }

/* ===== 低干扰滚动条 ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, .18) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, .14);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 17, 17, .28);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.console-nav,
.panel-scroll,
.conv-scroll,
.cmp-body,
.pop,
.km-modal,
.sk-drawer {
  scrollbar-gutter: stable;
}

.console-nav {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.console-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ============ 模型广场：筛选侧栏 + ZenMux 密度卡片 ============ */
.sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
}
.sidebar > .side-top { grid-row: 1; grid-column: 1; }
.sidebar > .console-nav,
.sidebar > .nav-filter {
  grid-row: 2;
  grid-column: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-9px);
}
.sidebar.nav-transition-ready > .console-nav,
.sidebar.nav-transition-ready > .nav-filter {
  transition:
    opacity 220ms cubic-bezier(.2, 0, 0, 1),
    transform 220ms cubic-bezier(.2, 0, 0, 1),
    visibility 0s linear 220ms;
}
.sidebar > .console-nav.is-shown,
.sidebar > .nav-filter.is-shown {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}
.filter-back {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; border-bottom: 1px solid var(--v-line-soft); background: transparent;
  color: #3a3a36; padding: 12px 10px; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer;
}
.filter-back:hover { background: #f4f4ef; }
.filter-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.fsec { padding: 13px 4px 15px; border-bottom: 1px solid var(--v-line-soft); }
.fsec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 6px 8px; }
.fsec-h b { font-size: 12px; font-weight: 900; }
.fsec-h .rst { display: grid; place-items: center; border: 0; background: none; color: var(--v-soft); cursor: pointer; }
.fsec-h .rst svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.chk, .frow {
  width: 100%; border: 0; background: transparent; color: #55544e;
  display: flex; align-items: center; text-align: left; cursor: pointer; font: inherit;
}
.chk { gap: 9px; padding: 7px 6px; font-size: 12px; font-weight: 800; }
.chk:hover, .frow:hover { background: #f4f4ef; color: var(--v-ink); }
.chk .box { width: 16px; height: 16px; border: 1.5px solid rgba(17,17,17,.3); display: grid; place-items: center; flex: none; }
.chk.on .box { background: var(--v-ink); border-color: var(--v-ink); }
.chk .box svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.5; opacity: 0; }
.chk.on .box svg { opacity: 1; }
.chk .ci, .chk .ci svg { width: 15px; height: 15px; flex: none; }
.chk .ci svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.chk .cn { flex: 1; }
.chk .cc, .frow .fc { color: var(--v-soft); font-size: 10px; font-weight: 900; }
.fgroups { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 6px; }
.g-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 8px; border: 1px solid rgba(17,17,17,.16); background: #fff;
  color: var(--v-ink); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer;
}
.g-chip.is-on { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }
/* 倍率和数量都是数字，不做区分就分不清谁是谁。
   倍率是价格信号 —— 做成带底色的徽标；数量只是计数 —— 保持朴素的淡色数字。 */
.g-chip .gr {
  padding: 1px 4px; background: rgba(17,17,17,.08);
  font-size: 9px; font-weight: 900; font-variant-numeric: tabular-nums;
}
.g-chip.is-on .gr { background: rgba(255,255,255,.22); }
.g-chip .n { font-size: 9px; font-weight: 700; opacity: .5; font-variant-numeric: tabular-nums; }
.frow { gap: 8px; padding: 7px 6px; }
.frow .fn { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 800; white-space: nowrap; }
.frow .fk, .frow .fk svg { width: 14px; height: 14px; flex: none; }
.frow .fk svg { fill: none; stroke: var(--v-ink); stroke-width: 2.5; opacity: 0; }
.frow.on .fk svg { opacity: 1; }
.filter-actions { padding: 12px 4px; }
.filter-reset-all { width: 100%; border: 1px solid var(--v-line); background: #fff; padding: 8px; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }

.vendor-logo { position: relative; display: grid; place-items: center; overflow: hidden; background: #fff; }
.vendor-logo img { display: block; width: 72%; height: 72%; object-fit: contain; }
.vendor-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--vendor-color); color: #fff; font-family: var(--v-disp); }
.vendor-fallback[hidden] { display: none; }
.flogo { width: 20px; height: 20px; flex: none; border-radius: 5px; font-size: 10px; }
.flogo.vendor-all { display: grid; place-items: center; background: var(--v-ink); color: #fff; font-family: var(--v-disp); }
.tile-logo { width: 34px; height: 34px; flex: none; border-radius: 8px; font-size: 15px; }
.dh-logo.vendor-logo { width: 46px; height: 46px; border-radius: 10px; }

.mp-tools { align-items: center; }
.mp-seg { display: flex; border: 1px solid var(--v-line); background: #fff; }
.mp-seg button { height: 36px; border: 0; background: transparent; color: var(--v-muted); padding: 0 13px; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.mp-seg button.on { background: var(--v-ink); color: #fff; }
.mp-search, .mp-sort { border-radius: 0; }

.mp-tile { min-width: 0; }
.tile-head { display: flex; align-items: flex-start; gap: 11px; }
.tile-id { min-width: 0; flex: 1; }
.tile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 900; line-height: 1.25; }
.tile-slug { margin-top: 2px; overflow: hidden; color: var(--v-muted); font-family: ui-monospace, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tile-discount { padding: 1px 6px; background: rgba(242,55,29,.08); color: var(--v-red); font-size: 9px; font-weight: 900; }
.tile-desc { min-height: 36px; margin: 11px 0 12px; color: #55544e; display: -webkit-box; overflow: hidden; font-size: 11.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tile-bottom { display: flex; flex: 1; flex-direction: column; margin-top: auto; }
.tile-io { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--v-line-soft); font-size: 11px; }
.tile-io > div { display: flex; align-items: center; min-width: 0; }
.tile-io .k { color: var(--v-muted); font-weight: 800; }
.tile-io .v { margin-left: auto; overflow: hidden; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.tile-io .tt { display: inline-flex; gap: 3px; margin-left: auto; }
.tile-io .tt i { width: 15px; height: 15px; border: 1px solid var(--v-line); display: grid; place-items: center; color: var(--v-muted); font-size: 8px; font-style: normal; font-weight: 900; }
.tile-foot { min-height: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--v-line-soft); color: var(--v-muted); font-size: 10px; font-weight: 800; }
.tile-gtag { padding: 2px 7px; border: 1px solid var(--v-line-soft); background: #f4f4ef; }
.tile-more { margin-left: auto; color: var(--v-soft); }
.tile-usage { min-height: 19px; margin: 11px 0 3px; font-family: var(--v-disp); font-size: 15px; }
.tile-usage.is-empty { visibility: hidden; }
.tile-usage span { margin-left: 3px; color: var(--v-muted); font-family: inherit; font-size: 11px; font-weight: 800; }
.tile-availability { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.tile-availability.is-empty { min-height: 12px; visibility: hidden; }
.tile-bar { display: flex; flex: 1; gap: 1.5px; height: 12px; align-items: flex-end; }
.tile-bar i { flex: 1; min-width: 2px; background: var(--v-green); height: 100%; }
.tile-bar i.a { background: var(--v-amber); }
.tile-bar i.r { background: #c83d32; }
.tile-bar i.lo { height: 62%; }
.tile-availability .tile-pct { flex: none; min-width: 38px; margin-left: 0; text-align: right; font-size: 10px; }
.view[data-view="models"].mp-reading .mp-grid { display: none !important; }

@media (max-width: 768px) {
  .console-shell { flex-direction: column; }
  .sidebar, .sidebar.is-collapsed {
    display: block; width: 100% !important; max-width: none; padding: 0; border-bottom: 1px solid var(--v-line-soft);
    overflow: hidden; transition: none;
  }
  .side-top { display: none !important; }
  .sidebar > .console-nav, .sidebar > .nav-filter {
    display: none; width: 100%; overflow-x: auto; overflow-y: hidden;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
  }
  .sidebar > .console-nav.is-shown, .sidebar > .nav-filter.is-shown { display: flex; }
  .console-nav section { display: flex; margin: 0; }
  .console-nav p { display: none !important; }
  .console-nav a, .sidebar.is-collapsed .console-nav a { width: auto !important; height: 38px !important; flex: none; margin: 0 !important; padding: 0 12px !important; border-radius: 0 !important; }
  .sidebar.is-collapsed .nav-text { display: inline !important; }
  .filter-back { width: auto; flex: none; border-bottom: 0; border-right: 1px solid var(--v-line-soft); white-space: nowrap; }
  .fsec { flex: none; min-width: 190px; border-bottom: 0; border-right: 1px solid var(--v-line-soft); }
  .filter-actions { display: flex; align-items: center; flex: none; padding: 8px; }
  .filter-reset-all { white-space: nowrap; }
  .mp-top { align-items: flex-start; flex-direction: column; }
  .mp-tools { width: 100%; flex-wrap: wrap; }
  .mp-search { min-width: 190px; flex: 1; }
  .dstat { flex-wrap: wrap; }
  .dstat-c { flex-basis: calc(50% - 1px); }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar.nav-transition-ready > .console-nav,
  .sidebar.nav-transition-ready > .nav-filter { transition: none; }
}

/* ===== 作品库：工具条并一行 + 放大弹窗（20260714c） ===== */
.works-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.works-bar .filter-tabs { margin-bottom: 0; }
.works-bar-spacer { flex: 1 1 auto; min-width: 8px; }
.works-fav, .works-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(17,17,17,.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.works-fav .ei, .works-sort .ei { width: 14px; height: 14px; }
.works-fav.on { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }
.works-fav.on .wt-knob { background: var(--v-ink); border-color: rgba(255,255,255,.5); }
.works-fav.on .wt-knob::after { left: auto; right: 1px; }
.works-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(17,17,17,.2);
  border-radius: 999px;
  background: #fff;
}
.works-search .ei { width: 14px; height: 14px; color: var(--v-soft); flex: none; }
.works-search-input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  width: 150px;
  color: var(--v-ink);
}
.works-search-input::placeholder { color: var(--v-soft); font-weight: 700; }
.wcard { cursor: pointer; }

.work-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.work-modal {
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(1000px, 94vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
/* 媒体区：浅色舞台，视频/图片 contain 居中，不留大面积黑边 */
.work-modal-media {
  flex: 1 1 auto;
  min-width: 0;
  background: #f2f1ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.work-modal-media video,
.work-modal-media img {
  max-width: 100%;
  max-height: calc(88vh - 28px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.work-modal-media audio { width: 100%; max-width: 420px; }
.work-modal-media .wm-empty { color: var(--v-soft); font-size: 13px; text-align: center; }
.work-modal-media .wm-text {
  color: var(--v-ink);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: calc(88vh - 28px);
  overflow: auto;
  width: 100%;
}
/* 信息栏固定宽度，永远读得到提示词，不被媒体挤成一条竖缝 */
.work-modal-info {
  flex: 0 0 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-height: 88vh;
  overflow: auto;
}
.wm-title { font-size: 16px; font-weight: 800; line-height: 1.4; padding-right: 30px; }
.wm-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--v-soft);
}
.wm-badge {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.12);
  background: #f5f4ef;
  color: var(--v-ink);
}
.wm-prompt-label { font-size: 11px; font-weight: 800; color: var(--v-soft); }

/* 参考图缩略：弹窗大条 + 历史卡小章。点击新开标签看原图 */
.wm-refs { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-refs .ref-thumb { width: 56px; height: 56px; border-radius: 10px; border: 1px solid rgba(17,17,17,.12); background-color: #f5f4ef; background-size: cover; background-position: center; flex: 0 0 auto; transition: transform .12s ease; }
.wm-refs .ref-thumb:hover { transform: scale(1.05); }
.ref-thumb { border: 1px solid rgba(17,17,17,.12); padding: 0; cursor: zoom-in; }
.ref-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(10,10,9,.82); cursor: zoom-out; }
.ref-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.batch-refs { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.batch-refs .ref-thumb { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(17,17,17,.12); background-color: #f5f4ef; background-size: cover; background-position: center; flex: 0 0 auto; }
.batch-refs .ref-thumb:hover { outline: 2px solid rgba(17,17,17,.25); outline-offset: 1px; }
.wm-prompt {
  flex: 1 1 auto;
  min-height: 60px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--v-ink);
  white-space: pre-wrap;
  word-break: break-word;
  background: #faf9f5;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 12px;
  padding: 12px;
}
.wm-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.wm-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid rgba(17,17,17,.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  color: var(--v-ink);
  cursor: pointer;
  text-decoration: none;
}
.wm-btn .ei { width: 14px; height: 14px; }
.wm-btn.primary { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }
.wm-btn.on { color: #c8a020; border-color: #c8a020; }
.wm-btn.danger:hover { color: #c0392b; border-color: #c0392b; }
.wm-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.wm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,17,17,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.wm-close .ei { width: 16px; height: 16px; }
.wm-toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,17,17,.9);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .work-modal { flex-direction: column; width: 96vw; max-height: 92vh; }
  .work-modal-media { flex: none; max-height: 46vh; }
  .work-modal-media video, .work-modal-media img { max-width: 100%; max-height: 44vh; }
  .work-modal-info { flex: none; max-height: 48vh; }
  .works-search-input { width: 110px; }
}

/* ===== 图2：作品卡视频首帧预览 + 收藏星星更好点（20260714d） ===== */
.wthumb-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  pointer-events: none;
}
.video-thumb .wtype-badge { z-index: 3; }
.video-thumb .w-play {
  position: relative;
  z-index: 2;
}
.wcard .wstar {
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  z-index: 3;
}
.wcard .wstar .ei { width: 18px; height: 18px; }
.wcard .wstar:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.14); }

/* ===== 图3：提示词库改为右侧抽屉 + 无分类隐藏（20260714d） ===== */
.pop-plib {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(420px, 94vw);
  height: 100vh;
  max-height: 100vh;
  border-radius: 18px 0 0 18px;
  border: 0;
  box-shadow: -18px 0 48px rgba(17,17,17,.18);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 20px;
  animation: plibDrawerIn .22s ease;
}
@keyframes plibDrawerIn {
  from { transform: translateX(24px); opacity: .4; }
  to { transform: translateX(0); opacity: 1; }
}
.plib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plib-head b { font-size: 15px; font-weight: 800; }
.plib-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(17,17,17,.14);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.plib-close .ei { width: 16px; height: 16px; }
.pop-plib .plib-cats[hidden] { display: none; }
.pop-plib .plib-list {
  flex: 1 1 auto;
  max-height: none;
}

@media (max-width: 520px) {
  .pop-plib { width: 100vw; border-radius: 0; }
}

/* ===== 提示词分类编辑（20260714f） ===== */
.plib-catedit { display: flex; align-items: center; gap: 8px; padding: 0 11px 10px; }
.plib-catedit-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(17,17,17,.15);
  border-radius: 8px;
  background: #faf9f5;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.plib-catedit-input:focus { border-color: rgba(17,17,17,.4); }
.plib-catedit .v-btn { white-space: nowrap; }

/* ===== 刷新按钮加载态：图标转圈，不再显示文字（20260714g） ===== */
.icon-btn.spinning svg { animation: iconSpin 0.7s linear infinite; }
.icon-btn.spinning { opacity: .7; cursor: progress; }
@keyframes iconSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== 生图结果格子：单张要有宽度、占位要好看（20260714j） ===== */
/* .img-grid 是 flex，img-grid-2/4 有显式宽度，但 img-grid-1 一直没有 —— 单张图格子会塌成 0 宽看不见 */
.img-grid-1 .result-tile { width: 320px; flex: none; }
@media (max-width: 640px) {
  .img-grid-1 .result-tile { width: 100%; }
}
/* 占位/失败态：不要复用 .tile-glyph（那是个装饰圆环，塞文字会挤成竖排） */
/* 缓存没命中、正在回源查作品详情时的反馈。
   没有这个的话点下去界面纹丝不动，用户会以为没点上，接着猛点。 */
.result-tile.is-opening { opacity: .55; cursor: progress; }
.result-tile.is-opening::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff;
  animation: tile-open-spin .7s linear infinite;
}
@keyframes tile-open-spin { to { transform: rotate(360deg); } }

.result-tile.processing,
.result-tile.failed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tile-spin {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(17,17,17,.14);
  border-top-color: rgba(17,17,17,.55);
  border-radius: 50%;
  animation: tileSpin .8s linear infinite;
}
@keyframes tileSpin { to { transform: rotate(360deg); } }
.tile-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--v-soft);
  text-align: center;
  padding: 0 12px;
  line-height: 1.5;
  word-break: break-word;
}
.result-tile.failed { background: #f6f4f0; }

/* ===== 生图结果：格子统一大小、可点放大、隐藏滚动条（20260714k） ===== */
/* 无论 1/2/3/4 张，每个格子尺寸一致（原本 img-grid-1/2/4 各有各的宽度，大小不一） */
.img-grid .result-tile,
.img-grid-1 .result-tile,
.img-grid-2 .result-tile,
.img-grid-3 .result-tile,
.img-grid-4 .result-tile {
  width: 200px !important;
  height: 200px !important;
  flex: none !important;
}
@media (max-width: 560px) {
  .img-grid .result-tile,
  .img-grid-1 .result-tile,
  .img-grid-2 .result-tile,
  .img-grid-3 .result-tile,
  .img-grid-4 .result-tile { width: 46vw !important; height: 46vw !important; }
}
/* 出图后的格子可点放大 */
.result-tile[data-work-id] { cursor: zoom-in; transition: transform .12s ease, box-shadow .12s ease; }
.result-tile[data-work-id]:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17,17,17,.16); }

/* 结果区滚动条不显示（仍可滚动） */
.studio-results { scrollbar-width: none; -ms-overflow-style: none; }
.studio-results::-webkit-scrollbar { width: 0; height: 0; display: none; }
.panel-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.panel-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* 生图参考图 chip */
.image-ref-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.image-ref-chip {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.14);
}
.image-ref-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-ref-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(17,17,17,.72);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 生图比例弹层（8 个比例，4×2 网格）+ 尺寸提示（20260714n） ===== */
.ratio-wrap { position: relative; display: inline-flex; }
.ratio-trigger b { font-weight: 800; margin: 0 2px; }
.pop-ratio {
  bottom: calc(100% + 8px);
  top: auto;
  left: 0;
  right: auto;
  width: 232px;
  padding: 8px;
  z-index: 90;
}
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.ratio-grid button {
  padding: 7px 0;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.ratio-grid button:hover { background: #f4f4ef; }
.ratio-grid button.is-on { background: var(--v-ink); color: #fff; border-color: var(--v-ink); }
.size-hint {
  font-size: 11px;
  font-weight: 800;
  color: var(--v-soft);
  white-space: nowrap;
  padding: 0 2px;
}

/* ===== 生成记录：整条删除 + 提示词收藏（20260714s） ===== */
/* .batch-bar 本来就是 flex（meta 是 flex:1），删除按钮当普通 flex 子元素靠右即可，
   之前用 absolute 会飘起来压在提示词文字上。 */
.batch-del {
  flex: none;
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(17,17,17,.12);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, color .15s, border-color .15s;
}
.batch:hover .batch-del { opacity: 1; }
.batch-del:hover { color: #c0392b; border-color: #c0392b; }
.batch-del .ei { width: 15px; height: 15px; }
.batch-del[disabled] { opacity: .4; cursor: progress; }
.batch-prompt-actions { gap: 6px; flex-wrap: wrap; }
.batch-prompt-save {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(17,17,17,.18);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.batch-prompt-save:hover { background: #f4f4ef; }
.batch-prompt-save .ei { width: 13px; height: 13px; flex: none; }

/* ===== 作品库多选（20260714x） ===== */
.works-select-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 12px;
  background: #fff;
}
.works-select-bar[hidden] { display: none; }
.wsb-count { font-size: 12px; font-weight: 800; margin-right: 4px; }
.works-select-bar .v-btn.danger { color: #c0392b; border-color: rgba(192,57,43,.4); }
.works-select-bar .v-btn[disabled] { opacity: .45; cursor: not-allowed; }
/* 多选模式下卡片可勾选 */
.works-gallery.selecting .wcard { cursor: pointer; }
.works-gallery.selecting .wcard::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(17,17,17,.35);
  background: rgba(255,255,255,.92);
  z-index: 4;
}
.works-gallery.selecting .wcard { position: relative; }
.works-gallery.selecting .wcard.is-picked { outline: 2px solid var(--v-ink); outline-offset: 2px; }
.works-gallery.selecting .wcard.is-picked::before {
  background: var(--v-ink);
  border-color: var(--v-ink);
}
.works-gallery.selecting .wcard.is-picked::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 21px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  z-index: 5;
}
/* 多选时不弹放大窗、不触发收藏 */
.works-gallery.selecting .wstar { pointer-events: none; opacity: .5; }


/* ===== 首页「最近作品」（20260714z） =====
   用全新的 .works-feed / .wf-* 类名重写：老 CSS 里 .works-strip 下的 i/b/small/span/em
   全都挂着遗留规则（.works-strip i 甚至是 position:absolute，会让缩略图飞到页面左上角），
   所以这里一个都不复用。 */
.works-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wf-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 14px;
  background: #fbfaf5;
  text-decoration: none;
  color: var(--v-ink);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wf-item:hover {
  background: #f5f4ed;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17,17,17,.08);
}
.wf-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #e9e8e1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
/* 视频/音频没有封面，用一个单色描边图标占位 */
.wf-thumb.wf-video::after,
.wf-thumb.wf-audio::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  opacity: .5;
}
.wf-thumb.wf-video::after {
  width: 0;
  height: 0;
  border-left: 11px solid rgba(17,17,17,.55);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.wf-thumb.wf-audio::after {
  border-radius: 2px;
  background:
    linear-gradient(rgba(17,17,17,.55) 0 0) 0 50% / 3px 60% no-repeat,
    linear-gradient(rgba(17,17,17,.55) 0 0) 6px 50% / 3px 100% no-repeat,
    linear-gradient(rgba(17,17,17,.55) 0 0) 12px 50% / 3px 45% no-repeat;
  width: 15px;
  height: 18px;
}
.wf-name {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.wf-kind {
  font-size: 10px;
  font-weight: 800;
  color: var(--v-soft);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.1);
  background: #fff;
  white-space: nowrap;
}
.wf-empty {
  padding: 28px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--v-soft);
  border: 1px dashed rgba(17,17,17,.14);
  border-radius: 14px;
}

/* ===== 财务区：沿用站点共享组件，仅补充布局 ===== */
.view.bill-view.is-active,
.view.plan-view.is-active,
.view.inv-view.is-active,
.view.ref-view.is-active {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.finance-table-wrap { overflow-x: auto; }

/* 账单 */
.bill-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.bill-metrics article::before,
.bill-metrics article::after,
.ref-reward-strip article::before,
.ref-reward-strip article::after {
  content: none;
  display: none;
}
.bill-detail-card .v-table { min-width: 560px; }
.bill-table th:nth-child(n + 2),
.bill-table td:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bill-line-chart { width: 100%; height: 188px; overflow: visible; }
.bill-line-chart .grid-line { fill: none; stroke: rgba(17, 17, 17, .08); stroke-width: 1; }
.bill-line-chart .area { fill: url(#billAreaFade); }
.bill-line-chart .line { fill: none; stroke: var(--v-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bill-line-chart .dot { fill: #fff; stroke: var(--v-ink); stroke-width: 1.5; }
.bill-line-chart text { fill: var(--v-soft); font-size: 10px; font-weight: 700; }
.bill-line-empty { display: grid; min-height: 188px; place-items: center; color: var(--v-soft); font-size: 12px; }

/* 套餐 */
.plan-current {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, .8fr) auto;
  align-items: center;
  gap: 24px;
}
.plan-current-label { display: block; margin-bottom: 7px; color: var(--v-soft); font-size: 10px; font-weight: 900; }
.plan-current-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.plan-current-title b { font-size: 18px; }
.plan-current-main > p { margin: 8px 0 0; color: var(--v-soft); font-size: 12px; line-height: 1.55; }
.plan-current-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 9px; color: var(--v-soft); font-size: 11px; }
.plan-current-meta b { color: var(--v-ink); font-variant-numeric: tabular-nums; }
.plan-current-usage { min-width: 0; }
.plan-usage-copy { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 11px; }
.plan-usage-copy span, .plan-current-usage > small { color: var(--v-soft); }
.plan-usage-track { height: 6px; overflow: hidden; border-radius: 999px; background: #e8e7df; }
.plan-usage-track span { display: block; height: 100%; border-radius: inherit; background: var(--v-ink); }
.plan-current-usage > small { display: block; margin-top: 6px; font-size: 10px; text-align: right; }
.plan-catalog-head { margin: 2px 2px -4px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; gap: 14px; }
.plan-empty { grid-column: 1 / -1; padding: 42px 20px; color: var(--v-soft); text-align: center; font-size: 12px; }
.plan-option { display: flex; min-width: 0; min-height: 340px; flex-direction: column; }
.plan-option.current { border-color: var(--v-ink); border-width: 2px; }
.plan-option-top { display: grid; gap: 7px; }
.plan-option-top h2 { margin: 0; font-size: 18px; }
.plan-option-top p { min-height: 38px; margin: 0; color: var(--v-soft); font-size: 12px; line-height: 1.55; }
.plan-option-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.plan-option-price b { font-family: var(--v-disp); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-option-price span, .plan-option-includes { color: var(--v-soft); font-size: 10px; font-weight: 800; }
.plan-option-divider { height: 1px; margin: 20px 0 15px; background: var(--v-line-soft); }
.plan-option-benefits { display: grid; gap: 10px; margin: 12px 0 22px; padding-left: 18px; color: #55544e; font-size: 12px; line-height: 1.5; }
.plan-option-buy { width: 100%; margin-top: auto; }
.plan-option-tag { align-self: start; }

/* 发票 */
.inv-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); align-items: start; gap: 16px; }
.inv-title-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 9px 0 2px;
}
.inv-title-summary-copy { display: grid; gap: 4px; min-width: 0; }
.inv-title-summary-name {
  overflow: hidden;
  color: var(--v-ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-title-summary-tax { color: var(--v-soft); font-size: 11px; }
.inv-title-panel.is-editing .inv-title-summary { display: none; }
.inv-title-form { display: grid; gap: 0; border-top: 1px solid var(--v-line-soft); }
.inv-title-panel:not(.is-editing) .inv-title-form { display: none; }
.inv-form-group { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px 18px; padding: 17px 0; border-bottom: 1px solid var(--v-line-soft); }
.inv-group-label { grid-row: 1 / span 2; color: #55544e; font-size: 11px; font-weight: 900; }
.inv-group-label small { display: block; margin-top: 4px; color: var(--v-soft); font-size: 9px; }
.inv-field { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 10px; }
.inv-field > span, .inv-range-form label > span { color: #55544e; font-size: 11px; font-weight: 800; }
.inv-field input, .inv-range-form select, .ref-op-row input, .ref-op-row select, .ref-share-input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 11px;
  border: 1px solid rgba(17, 17, 17, .16);
  border-radius: 5px;
  background: #fff;
  color: var(--v-ink);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.inv-field input:focus, .inv-range-form select:focus, .ref-op-row input:focus, .ref-op-row select:focus { border-color: var(--v-ink); }
.inv-form-actions { display: flex; align-items: center; gap: 14px; padding-top: 18px; }
.inv-form-actions small, .inv-request-note { color: var(--v-soft); font-size: 10px; }
.inv-request-panel { position: sticky; top: 12px; }
.inv-amount-box { margin: 18px 0; padding: 17px 0; border-top: 1px solid var(--v-line-soft); border-bottom: 1px solid var(--v-line-soft); }
.inv-amount-box small, .inv-amount-box span { display: block; color: var(--v-soft); font-size: 10px; }
.inv-amount-box b { display: block; margin: 8px 0; font-family: var(--v-disp); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.inv-range-form { display: grid; gap: 12px; }
.inv-range-form label { display: grid; gap: 6px; }
.inv-request-panel > .v-btn { margin-top: 16px; }
.inv-request-note { margin: 11px 0 0; line-height: 1.55; }
.inv-table { min-width: 720px; }

/* 可开票订单选择器 */
.inv-order-picker-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.inv-order-picker-head > span { color: #55544e; font-size: 11px; font-weight: 800; }
.inv-order-all {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--v-soft); font-size: 10px; font-weight: 700; text-decoration: underline;
}
.inv-order-all:hover { color: var(--v-ink); }
/* 订单可能很多，给个上限让「提交」按钮不至于被挤出屏幕 */
.inv-order-list { max-height: 260px; overflow-y: auto; display: grid; gap: 6px; }
.inv-order-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border: 1px solid var(--v-line-soft); border-radius: 8px;
  cursor: pointer; transition: border-color .15s;
}
.inv-order-item:hover { border-color: var(--v-ink); }
.inv-order-item input { width: 14px; height: 14px; accent-color: var(--v-ink); cursor: pointer; }
.inv-order-main { display: grid; gap: 2px; }
.inv-order-main b { font-size: 13px; font-variant-numeric: tabular-nums; }
.inv-order-main small { color: var(--v-soft); font-size: 10px; }
.inv-order-empty { margin: 0; padding: 18px 0; text-align: center; color: var(--v-soft); font-size: 11px; }

/* 邀请 */
.ref-share-layout { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); align-items: end; gap: 24px; }
.ref-code-block { display: grid; gap: 7px; }
.ref-code-block small, .ref-share > label, .ref-wallet-balance small { color: var(--v-soft); font-size: 10px; font-weight: 800; }
.ref-code { font-family: var(--v-disp); font-size: 25px; line-height: 1; overflow-wrap: anywhere; }
.ref-share-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.ref-share-input { flex: 1; font-family: ui-monospace, Menlo, monospace; }
.ref-reward-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.ref-wallet-balance { padding: 4px 0 18px; }
.ref-wallet-bal { display: block; margin-top: 7px; font-family: var(--v-disp); font-size: 31px; line-height: 1; font-variant-numeric: tabular-nums; }
.ref-wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-op-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--v-line-soft); }
.ref-op-form[hidden] { display: none; }
.ref-op-form > label { display: block; margin-bottom: 7px; color: var(--v-soft); font-size: 10px; font-weight: 800; }
.ref-op-row { display: flex; gap: 8px; margin-bottom: 11px; }
.ref-op-row input, .ref-op-row select { flex: 1; }
.ref-rules { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--v-line-soft); }
.ref-rules > span { font-size: 11px; font-weight: 900; }
.ref-rules ol { margin: 10px 0 8px; padding-left: 20px; color: #55544e; font-size: 11px; line-height: 1.7; }
.ref-rules small { color: var(--v-soft); font-size: 10px; }
.ref-table { min-width: 640px; }

@media (max-width: 1040px) {
  .plan-current { grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); }
  .plan-current .sub-renew { justify-self: start; }
  .inv-cols { grid-template-columns: 1fr; }
  .inv-request-panel { position: static; }
}

@media (max-width: 720px) {
  .view.bill-view.is-active,
  .view.plan-view.is-active,
  .view.inv-view.is-active,
  .view.ref-view.is-active { gap: 14px; }
  .bill-metrics, .plan-current, .ref-share-layout, .ref-reward-strip { grid-template-columns: 1fr; }
  .plan-current { gap: 18px; }
  .plan-current .sub-renew { width: 100%; }
  .inv-form-group, .inv-field { grid-template-columns: 1fr; }
  .inv-group-label { grid-row: auto; }
  .inv-form-actions, .ref-share-row, .ref-op-row { align-items: stretch; flex-direction: column; }
  .inv-form-actions .v-btn, .ref-share-row .v-btn, .ref-op-row .v-btn { width: 100%; }
}

/* 列表分页 */
.view.is-active .pager-btns { display: flex; align-items: center; justify-content: center; gap: 4px; }
.view.is-active .log-page-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 5px;
  background: #fff;
  color: var(--v-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.view.is-active .log-page-btn:hover:not(:disabled) { border-color: var(--v-ink); }
.view.is-active .log-page-btn.is-current { border-color: var(--v-ink); background: var(--v-ink); color: #fff; font-weight: 800; }
.view.is-active .log-page-btn:disabled { color: var(--v-soft); cursor: not-allowed; opacity: .45; }
.view.is-active .log-page-gap { width: 24px; color: var(--v-soft); font-size: 12px; text-align: center; }
.view.is-active .list-more { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 16px 0 4px; }
.view.is-active .list-more[hidden] { display: none; }
.view.is-active .list-more-status { min-height: 15px; color: #b43b35; font-size: 10px; line-height: 1.4; text-align: center; }
.view.is-active .topups-list-more,
.view.is-active .withdrawals-list-more { padding: 12px 0 14px; border-top: 1px solid var(--v-line-soft); }
.view.is-active .conv-list-more { padding: 10px 8px 4px; }
.view.is-active .conv-list-more .v-btn { width: 100%; }

@media (max-width: 720px) {
  .view.is-active .log-pager { flex-wrap: wrap; }
  .view.is-active .pager-btns { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; padding-bottom: 3px; }
}

/* 密钥列表：分组行内修改 */
.view.is-active[data-view="keys"] .key-group-select { position: relative; display: inline-block; min-width: 112px; }
.view.is-active[data-view="keys"] .key-group-trigger {
  display: inline-flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(17, 17, 17, .18);
  border-radius: 5px;
  background: #fff;
  color: var(--v-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.view.is-active[data-view="keys"] .key-group-trigger:hover:not(:disabled),
.view.is-active[data-view="keys"] .key-group-select.is-open .key-group-trigger { border-color: rgba(17, 17, 17, .55); }
.view.is-active[data-view="keys"] .key-group-trigger:focus-visible { outline: 2px solid rgba(17, 17, 17, .2); outline-offset: 2px; }
.view.is-active[data-view="keys"] .key-group-trigger > span { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view.is-active[data-view="keys"] .key-group-trigger svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.view.is-active[data-view="keys"] .key-group-select.is-open .key-group-trigger svg { transform: rotate(180deg); }
.view.is-active[data-view="keys"] .key-group-trigger:disabled { cursor: not-allowed; opacity: .48; }
.view.is-active[data-view="keys"] .key-group-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 200;
  width: max-content;
  min-width: 100%;
  max-width: 240px;
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #e2e2dc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .12);
}
.view.is-active[data-view="keys"] .key-group-menu[hidden] { display: none; }
.view.is-active[data-view="keys"] .key-group-option {
  display: flex;
  width: 100%;
  min-width: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #3a3a34;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.view.is-active[data-view="keys"] .key-group-option:hover { background: #f4f4ef; }
.view.is-active[data-view="keys"] .key-group-option.is-on { background: #efefe9; color: var(--v-ink); font-weight: 900; }
.view.is-active[data-view="keys"] .key-group-option > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view.is-active[data-view="keys"] .key-group-option svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.view.is-active[data-view="keys"] .key-group-option.is-on svg { opacity: 1; }
.view.is-active[data-view="keys"] .key-group-empty { display: block; padding: 8px; color: var(--v-soft); font-size: 11px; white-space: nowrap; }
.view.is-active[data-view="keys"] .key-group-select.is-saving .key-group-trigger { background: #f6f6f2; }
.view.is-active[data-view="keys"] .key-group-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  padding: 9px 13px;
  border: 1px solid rgba(17, 17, 17, .16);
  border-radius: 5px;
  background: var(--v-ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .16);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
}
.view.is-active[data-view="keys"] .key-group-toast.is-show { opacity: 1; transform: translateY(0); }
.view.is-active[data-view="keys"] .key-group-toast.is-error { background: #b43b35; }

.view.is-active[data-view="keys"] .keys-table-card { overflow: visible; }

/* 概览：近 6 个月 Token 日历热力图 */
.overview-redesign .trend-card .card-head { margin-bottom: 10px; }
.overview-redesign .trend-brief {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.overview-redesign .trend-brief strong {
  overflow: hidden;
  color: var(--v-ink);
  font-family: var(--v-disp);
  font-size: 25px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-redesign .trend-brief span,
.overview-redesign .trend-brief em {
  color: var(--v-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.overview-redesign .trend-brief em { margin-left: auto; }
.overview-redesign .token-heatmap-wrap {
  position: relative;
  min-width: 0;
  margin-top: 16px;
  padding-bottom: 24px;
  overflow-x: auto;
}
.overview-redesign .token-heatmap {
  display: block;
  width: 100%;
  min-width: 420px;
  height: auto;
  overflow: visible;
}
.overview-redesign .token-heatmap text {
  fill: var(--v-soft);
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
}
.overview-redesign .heatmap-cell {
  stroke: rgba(17, 17, 17, .06);
  stroke-width: .5;
  transition: stroke .12s ease, stroke-width .12s ease;
}
.overview-redesign .heatmap-cell:hover {
  stroke: var(--v-ink);
  stroke-width: 1;
}
.overview-redesign .heatmap-level-0 { fill: rgba(17, 17, 17, .06); }
.overview-redesign .heatmap-level-1 { fill: rgba(17, 17, 17, .2); }
.overview-redesign .heatmap-level-2 { fill: rgba(17, 17, 17, .4); }
.overview-redesign .heatmap-level-3 { fill: rgba(17, 17, 17, .65); }
.overview-redesign .heatmap-level-4 { fill: var(--v-ink); }
.overview-redesign .heatmap-cell.is-outside { opacity: .35; }
.overview-redesign .token-heatmap-empty {
  margin-top: -8px;
  color: var(--v-soft);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.overview-redesign .token-heatmap-legend {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--v-soft);
  font-size: 9px;
  font-weight: 800;
}
.overview-redesign .token-heatmap-legend i {
  width: 10px;
  height: 10px;
  border: .5px solid rgba(17, 17, 17, .06);
  border-radius: 2px;
}
.overview-redesign .token-heatmap-legend i[data-level="0"] { background: rgba(17, 17, 17, .06); }
.overview-redesign .token-heatmap-legend i[data-level="1"] { background: rgba(17, 17, 17, .2); }
.overview-redesign .token-heatmap-legend i[data-level="2"] { background: rgba(17, 17, 17, .4); }
.overview-redesign .token-heatmap-legend i[data-level="3"] { background: rgba(17, 17, 17, .65); }
.overview-redesign .token-heatmap-legend i[data-level="4"] { background: var(--v-ink); }

@media (max-width: 720px) {
  .overview-redesign .trend-brief { flex-wrap: wrap; }
  .overview-redesign .trend-brief em { width: 100%; margin-left: 0; }
}

/* ============================================================
   [encorezome 企业白标] 团队管理与企业额度卡（单色描边，无 emoji）
   ============================================================ */
.enterprise-brand-name { font-weight: 900; font-size: 21px; letter-spacing: .3px; line-height: 1; }

/* ── 团队提示词库（管理页 + 弹层公共件）── */
.tp-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tp-filter-group { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tp-filter-sep { width: 1px; height: 18px; background: rgba(17,17,17,.15); }
.tp-order-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(17,17,17,.10); border-radius: 10px; background: #faf9f5; }
.tp-order-label { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--v-soft); }
.tp-order-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tp-order-chip { cursor: grab; display: inline-flex; align-items: center; gap: 5px; user-select: none; }
.tp-order-chip svg { width: 11px; height: 11px; stroke: rgba(17,17,17,.35); fill: none; stroke-width: 2; stroke-linecap: round; }
.tp-order-chip.is-dragging { opacity: .5; border-style: dashed; }
.tp-order-hint { margin-left: auto; font-size: 11px; color: var(--v-soft); font-weight: 700; }
.tp-thumb { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(17,17,17,.10); background-color: #f5f4ef; background-size: cover; background-position: center; flex: 0 0 auto; }
.tp-thumb svg { width: 16px; height: 16px; stroke: rgba(17,17,17,.30); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.tp-content-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 团队提示词编辑器：纵向大表单，正文是主角 */
.tpp-editor { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.tpp-field { display: flex; flex-direction: column; gap: 6px; }
.tpp-field > span { font-size: 11px; font-weight: 900; color: var(--v-soft); }
.tpp-editor input[type="text"], .tpp-editor input:not([type]), .tpp-editor select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid rgba(17,17,17,.18); border-radius: 9px; background: #fff; font: inherit; font-size: 13px; outline: none; box-sizing: border-box; }
.tpp-editor input:focus, .tpp-editor select:focus, .tpp-editor textarea:focus { border-color: var(--v-ink); }
.tpp-editor textarea { width: 100%; min-height: 200px; padding: 10px 12px; border: 1px solid rgba(17,17,17,.18); border-radius: 9px; background: #fff; font: inherit; font-size: 13px; line-height: 1.7; outline: none; resize: vertical; box-sizing: border-box; }
.tpp-grid { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.tpp-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.tpp-onoff input { width: 15px; height: 15px; accent-color: var(--v-ink); }
/* openTeamModal 会把原生 select 换成 .ui-select 胶囊：在编辑器里对齐 38px 输入框规格 */
.tpp-editor .ui-select { display: flex; width: 100%; height: 38px; justify-content: space-between; border-radius: 9px; border-color: rgba(17,17,17,.18); padding: 0 12px; }
.tpp-upload { display: flex; align-items: center; gap: 12px; }
.tpp-upload .tp-thumb { width: 56px; height: 56px; }
.tpp-upload-main { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.tpp-upload-hint { font-size: 11px; color: var(--v-soft); font-weight: 700; }
.tpp-onoff { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* 企业拦截页：被停用/被移出的成员整页挡住，绝不让他掉进普通消费者控制台。
   这块 DOM 会 replaceChildren 掉整个 body，所以样式不能依赖任何外层容器。 */
.enterprise-denied { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg, #f7f7f5); }
.enterprise-denied-card { width: min(440px, 100%); padding: 36px 32px; border: 1px solid var(--line, #e5e5e5); border-radius: 16px; background: var(--panel, #fff); text-align: center; }
.enterprise-denied-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--muted, #8a8a85); stroke-linecap: round; }
.enterprise-denied-card h1 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.enterprise-denied-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted, #6b6b66); }
.enterprise-denied-hint { margin-top: 12px !important; }
.enterprise-denied-hint strong { font-weight: 600; color: var(--ink, #1c1c1a); }
.enterprise-denied-signout { margin-top: 24px; padding: 9px 22px; border: 1px solid var(--line, #e5e5e5); border-radius: 999px; background: transparent; font-size: 14px; color: var(--ink, #1c1c1a); cursor: pointer; }
.enterprise-denied-signout:hover { background: var(--hover, #f0f0ee); }
/* 企业兜底品牌位的圈标：原 .console-logo img 有 154px 定宽（含媒体查询分支），必须 important 压掉 */
.console-logo img.enterprise-mark { width: auto !important; height: 20px !important; }
.enterprise-quota-card { margin: 14px 0 4px; padding: 14px 16px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; background: var(--panel, #fff); }
.eqc-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.eqc-item { display: flex; flex-direction: column; gap: 3px; min-width: 96px; }
.eqc-label { font-size: 12px; color: var(--muted, #888); }
.eqc-item b { font-size: 16px; font-variant-numeric: tabular-nums; }
.eqc-item b.is-debt { color: #b42318; }
.team-debt-tag { font-size: 11px; color: #b42318; border: 1px solid #b42318; border-radius: 999px; padding: 1px 8px; width: fit-content; margin-top: 2px; }
.eqc-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.eqc-form input, .eqc-form select { height: 32px; padding: 0 10px; border: 1px solid var(--line, #ddd); border-radius: 8px; background: transparent; font-size: 13px; min-width: 140px; }
.eqc-msg { font-size: 12px; color: var(--muted, #888); }
.team-summary { margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; }
.team-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.team-tab { height: 32px; padding: 0 14px; border: 1px solid var(--line, #ddd); border-radius: 999px; background: transparent; font-size: 13px; cursor: pointer; }
.team-tab.is-active { background: #111; color: #fff; border-color: #111; }
/* 不能给 <td> 设 display:flex——单元格会脱离表格行高计算，边框跟同行其他列对不齐。
   保持 table-cell，按钮之间用 margin 拉开。 */
.team-ops { white-space: nowrap; vertical-align: middle; }
.team-ops .v-btn + .v-btn { margin-left: 6px; }
.team-ops .v-btn { height: 26px; padding: 0 10px; font-size: 12px; }
.team-panel { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; }
.team-panel h3 { margin: 0 0 10px; font-size: 14px; }
.team-workbench-form input { min-width: 220px; }
.team-key-once { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line, #bbb); border-radius: 8px; font-size: 13px; word-break: break-all; }
.team-key-once code { user-select: all; }
.team-loading { padding: 24px; color: var(--muted, #888); font-size: 13px; }
.team-flash { padding: 8px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (max-width: 560px) { .eqc-row { gap: 12px; } .eqc-item { min-width: 42%; } }

/* ============================================================
   [encorezome 企业白标] 企业管理台独立页面（20260801-enterprise-6）
   ============================================================ */
.team-nav-badge {
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.team-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 14px;
}
.team-overview-grid .v-table-card { overflow: hidden; }
.team-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 4px;
}
.team-card-head h2,
.team-card-head h3 { margin: 0; font-size: 15px; }
.team-card-head p,
.team-binding-card > p { margin: 4px 0 0; color: var(--muted, #888); font-size: 12px; }
.team-trend-card #teamTrend { padding: 0 12px 10px; }
.team-trend-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 4px;
  color: var(--muted, #888);
  font-size: 11px;
}
.team-trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.team-trend-legend i { display: inline-block; width: 13px; height: 6px; border-radius: 2px; }
.team-trend-legend .is-bar { background: #d8d5cc; }
.team-trend-legend .is-line { height: 2px; background: #111; }
.team-trend-chart { display: block; width: 100%; min-height: 210px; }
.team-chart-axis { stroke: rgba(17,17,17,.14); stroke-width: 1; }
.team-chart-bars rect { fill: #d8d5cc; }
.team-chart-bars rect:hover { fill: #aaa69c; }
.team-chart-line { fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.team-chart-labels { fill: var(--muted, #888); font-size: 10px; }
.team-top-table { margin-top: 6px; }
.team-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 1px solid var(--line, #ddd);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}
.team-binding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.team-binding-grid .team-panel { margin-top: 16px; }
.team-binding-card .eqc-form input[type="text"] { flex: 1 1 220px; }
.team-policy-options { display: flex; flex-direction: column; gap: 8px; }
.team-policy-options label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.team-policy-options input { accent-color: #111; }
.team-invite-panel .team-card-head { padding: 0 0 4px; }
.team-invite-panel .v-table-card { margin-top: 12px; }
.team-range-switch { gap: 6px; }
.team-range-switch .v-btn { min-width: 60px; }

@media (max-width: 900px) {
  .team-overview-grid,
  .team-binding-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team-trend-chart { min-width: 620px; }
  .team-trend-card #teamTrend { overflow-x: auto; }
  .team-range-switch { width: 100%; }
}

/* [encorezome 企业管理台第二批] 仅对企业视图做既有组件的排版微调 */
.team-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.team-trend-card.overview-redesign .token-heatmap-wrap { margin: 10px 0 0; }
.team-trend-card.overview-redesign .team-token-heatmap {
  width: auto;
  min-width: 130px;
  max-width: 100%;
}
.team-trend-card.overview-redesign .trend-brief { padding: 8px 16px 0; }
.team-modal { width: min(760px, calc(100vw - 32px)); }
.team-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--v-line-soft);
}
.team-modal-head h2 { margin: 0; font-size: 18px; }
.team-modal-body { padding: 20px; }
.team-account-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: none;
  margin-bottom: 18px;
}
.team-account-grid .trend-card { min-height: 126px; padding: 20px; }
.team-account-value {
  color: var(--v-ink);
  font-family: var(--v-disp);
  font-size: 28px;
  font-weight: 900;
}
.team-billing-levels { margin-bottom: 12px; }
.team-matrix-card,
.team-settings-card { margin-top: 16px; }
.team-template-form { align-items: stretch; flex-direction: column; }
.team-template-form fieldset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--v-line-soft);
  border-radius: 8px;
}
.team-template-form legend { padding: 0 6px; font-size: 12px; font-weight: 900; }
.team-template-form fieldset input { min-width: 0; width: 100%; }

@media (max-width: 900px) {
  .team-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-template-form fieldset { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team-account-grid { grid-template-columns: 1fr; }
}

/* [encorezome 企业概览与团队概览第三批] */
.enterprise-status-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--v-ink);
  font-size: 13px;
  white-space: nowrap;
}
.enterprise-status-strip.is-urgent {
  color: #b42318;
  font-weight: 900;
}
.enterprise-status-strip .ent-strip-dot {
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.enterprise-status-strip .team-inline-link {
  gap: 6px;
  margin-left: auto;
  color: inherit;
}
.enterprise-status-strip .team-inline-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-overview-grid .team-trend-card {
  grid-column: 1 / -1;
}
.team-bar-trend {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 92px;
  margin: 14px 4px 0;
  border-bottom: 1px solid rgba(17, 17, 17, .14);
}
.bt-col {
  display: flex;
  flex: 1 1 0;
  align-items: flex-end;
  height: 100%;
  min-width: 0;
}
.bt-bar {
  display: block;
  width: 100%;
  min-height: 3%;
  border-radius: 3px 3px 0 0;
  background: var(--v-ink);
  opacity: .78;
  transition: opacity .12s ease;
}
.bt-col:hover .bt-bar { opacity: 1; }
.bt-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px 4px 0;
  color: var(--v-soft);
  font-size: 10px;
  font-weight: 800;
}
.bt-axis span:nth-child(2) { text-align: center; }
.bt-axis span:last-child { text-align: right; }

@media (max-width: 900px) {
  .team-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-overview-grid .team-trend-card {
    grid-column: auto;
  }
}

/* [encorezome 企业概览布局修正]
   console-overrides.css 用 !important 把 .ops-grid 锁成 "balance trend" 两列、
   .metric-row 锁成 4 列。企业模式下余额卡与前两张统计卡被 JS 隐藏，网格列却还占位，
   导致概览页左侧留一大块空白。下面的规则只挂在企业模式才会加上的两个 class 上，
   必须带 !important 才能压过 overrides，普通用户布局不受影响。 */
/* 企业模式的余额卡：结构不动，只换内容，所以三栏布局与原设计完全一致 */
.enterprise-balance-card .bal-head .team-inline-link {
  padding: 5px 12px;
  border: 1px solid var(--v-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.enterprise-balance-card .bal-foot .is-pending { color: #b42318; }
.enterprise-balance-card .eqc-form { margin: 14px 0 0; }

/* .eqc-form 的 display:flex 覆盖了 [hidden]（UA 样式特异性最低），
   导致员工「申请追加额度」表单默认展开。 */
.eqc-form[hidden] { display: none !important; }

/* 状态条：只有待审批那一段标红，窄屏允许换行 */
.enterprise-status-strip { flex-wrap: wrap; white-space: normal; }
.enterprise-status-strip > span { white-space: nowrap; }
.enterprise-status-strip.is-urgent { color: var(--v-ink); font-weight: 500; }
.enterprise-status-strip .ent-strip-pending.is-urgent { color: #b42318; font-weight: 900; }

/* [encorezome 团队概览第三轮] 分段切换 / 今日汇总 / 榜单占比条 / 角色卡片 / 导出按钮 */
.team-trend-card .team-card-head { align-items: flex-start; }
.team-seg {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  background: #f0eee7;
}
.team-seg button {
  padding: 5px 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #7c7871;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.team-seg button.is-on { background: var(--v-ink); color: #fff; }

/* 大金额压回标题下方一行，不再单独占掉半张卡 */
.team-trend-card.overview-redesign .trend-brief {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px 0;
}
.team-trend-card.overview-redesign .trend-brief strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.team-trend-card.overview-redesign .trend-brief span { color: var(--v-soft); font-size: 12px; }

.team-today { display: flex; flex-wrap: wrap; gap: 34px; padding: 16px 16px 20px; }
.tt-item { display: flex; flex-direction: column; gap: 4px; }
.tt-item > span { color: var(--v-soft); font-size: 11px; }
.tt-item b { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; }
.team-delta { font-size: 12px; font-weight: 700; }
.team-delta.is-up { color: #b42318; }
.team-delta.is-down { color: #177245; }

.team-top-table th.is-num, .team-top-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.team-top-table td.is-num { position: relative; }
.team-top-bar {
  position: absolute;
  left: 0;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(17, 17, 17, .18);
}

.team-role-pick { display: flex; gap: 8px; flex: 1 1 340px; }
.trp-opt {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid var(--line, #e0dcd2);
  border-radius: 10px;
  cursor: pointer;
}
.trp-opt.is-on { border-color: var(--v-ink); box-shadow: inset 0 0 0 1px var(--v-ink); }
.trp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.trp-opt b { font-size: 13px; }
.trp-opt small { color: var(--v-soft); font-size: 11px; line-height: 1.4; }

.team-export-btn { display: inline-flex; align-items: center; gap: 7px; }
.team-export-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .team-trend-card .team-card-head { flex-wrap: wrap; }
  .team-seg { margin-left: 0; }
  .team-role-pick { flex-wrap: wrap; }
}
.team-hint { margin: 0 0 12px; color: var(--v-soft); font-size: 12px; line-height: 1.6; }

/* [encorezome 第四轮] 表单式弹窗 / 成员详情 / 待办卡 / 使用率条 / 动态流 */
.team-form { margin-bottom: 18px; }
.tf-field { margin-bottom: 14px; }
.tf-field > label { display: block; margin-bottom: 7px; color: var(--v-soft); font-size: 11px; font-weight: 800; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line, #e0dcd2);
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 13px;
}
.tf-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tf-tip { color: var(--v-soft); font-size: 11px; }
.team-section-title { margin: 18px 0 10px; color: var(--v-soft); font-size: 12px; font-weight: 800; }
.team-role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; flex: none; }

.team-name-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, .25);
  text-underline-offset: 3px;
  cursor: pointer;
}
.team-name-link:hover { text-decoration-color: currentColor; }

.tmd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #f0ede6; border-radius: 12px; overflow: hidden; }
.tmd-cell { padding: 13px 15px; background: #fff; }
.tmd-cell span { color: var(--v-soft); font-size: 11px; }
.tmd-cell b { display: block; margin-top: 4px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tmd-sec { margin-top: 18px; }
.tmd-sec h4 { margin: 0 0 9px; color: var(--v-soft); font-size: 12px; font-weight: 800; }
.tmd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tmd-chip { padding: 4px 10px; border: 1px solid var(--line, #e0dcd2); border-radius: 999px; font-size: 11px; }
.tmd-chip.is-off { border-style: dashed; color: var(--v-soft); }
.tmd-table td { font-size: 13px; }
.tmd-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.tmd-barcell { width: 130px; }
.tmd-bar { position: relative; display: block; height: 5px; border-radius: 3px; background: #f0ede6; overflow: hidden; }
.tmd-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--v-ink); }
.tmd-bar i.is-hot { background: #b42318; }

/* 待办按内容宽度排，不再拉满三等分；边框调浅，和下面的大卡一个调子 */
.team-todo { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.tt-card {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid #efece5;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.tt-card.is-warn { border-color: #f0cfc9; }
.tt-card b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tt-card.is-warn b { color: #b42318; }
.tt-card i { font-style: normal; font-size: 12px; color: var(--v-soft); line-height: 1.35; }
.tt-card svg { margin-left: auto; width: 14px; height: 14px; fill: none; stroke: #b4afa5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.team-feed { padding: 4px 16px 12px; }
.tf-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f5f3ee; font-size: 12px; }
.tf-item:last-child { border-bottom: 0; }
.tf-item time { flex: 0 0 82px; color: var(--v-soft); font-variant-numeric: tabular-nums; }
.team-muted { color: var(--v-soft); }

@media (max-width: 700px) {
  .team-todo { grid-template-columns: minmax(0, 1fr); }
  .tmd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-row, .team-role-pick { grid-template-columns: minmax(0, 1fr); }
}

/* [encorezome 团队概览 高密度版] KPI 带 / 分层柱 / 消费结构 / 活跃矩阵 */
.team-balance-ref { color: var(--v-soft); font-size: 12px; font-variant-numeric: tabular-nums; }

.team-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
/* --panel 是 #f7f7f3 面板底色，不是白；卡片要和 .v-table-card 一致用纯白 */
.tk { padding: 12px 14px; border: 1px solid #efece5; border-radius: 13px; background: #fff; }
.tk > span { color: var(--v-soft); font-size: 10px; font-weight: 800; }
.tk b { display: block; margin: 5px 0 2px; font-size: 20px; font-weight: 800; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.tk small { color: var(--v-soft); font-size: 10px; }
.tk-delta { font-size: 12px; font-weight: 800; }
.tk-delta.is-up { color: #b42318; }
.tk-delta.is-down { color: #177245; }

/* 团队概览各区块统一 14px 间距：原来 view-head 是 18、矩阵卡到榜单是 0，看着忽宽忽窄 */
/* view-head 在 console-overrides.css:1726 是 18px !important，只能同样用 !important 覆盖 */
.team-view .view-head { margin-bottom: 14px !important; }
.team-view .team-todo,
.team-view .team-kpis,
.team-view .team-main-grid,
.team-view .team-matrix-card { margin: 0 0 14px; }
.team-view .team-overview-grid { margin: 0; }
.team-main-grid { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 14px; }

/* 工作台四类用暖灰阶编码：整体调浅，30 根柱子铺满时不至于压成一片黑；
   颜色只用于数据区分，图标仍是单色描边 */
[data-purpose="视频"] { background: #6e675e; }
[data-purpose="生图"] { background: #918a7f; }
[data-purpose="对话"] { background: #b4ada0; }
[data-purpose="音频"] { background: #d7d1c3; }

.team-plot { display: flex; gap: 8px; margin: 12px 16px 0; }
.bt-yaxis { display: flex; flex-direction: column; justify-content: space-between; width: 52px; color: #b4afa5; font-size: 10px; font-weight: 700; text-align: right; }
.bt-area { position: relative; flex: 1; min-width: 0; }
.bt-grid { position: absolute; inset: 0; pointer-events: none; }
.bt-grid hr { position: absolute; left: 0; right: 0; margin: 0; border: 0; border-top: 1px solid #f2f0ea; }
.bt-avg { position: absolute; left: 0; right: 0; border-top: 1px dashed #b42318; opacity: .55; }
.bt-avg span { position: absolute; right: 0; top: -14px; color: #b42318; font-size: 10px; font-weight: 800; }
.team-bar-trend { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 190px; border-bottom: 1px solid rgba(17, 17, 17, .12); }
.bt-col { display: flex; flex: 1 1 0; align-items: flex-end; min-width: 0; height: 100%; cursor: pointer; }
.bt-stack { display: flex; flex-direction: column-reverse; width: 100%; border-radius: 3px 3px 0 0; overflow: hidden; }
.bt-seg { display: block; width: 100%; }
.bt-col:hover .bt-stack, .bt-col.is-on .bt-stack { outline: 1px solid rgba(17, 17, 17, .38); outline-offset: 1px; }
.bt-axis { display: flex; justify-content: space-between; padding: 7px 16px 0 76px; color: var(--v-soft); font-size: 10px; font-weight: 700; }
.bt-legend { display: flex; gap: 13px; flex-wrap: wrap; padding: 8px 16px 14px 76px; color: var(--v-soft); font-size: 11px; }
.bt-legend i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.bt-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.bt-dash { display: inline-block; width: 14px; border-top: 1px dashed #b42318; opacity: .6; }
.bt-hint { color: #b4afa5; }

.mix-stack { display: flex; height: 12px; margin: 12px 16px 0; border-radius: 6px; overflow: hidden; }
.mix-stack span { display: block; height: 100%; }
.mix-list { display: flex; flex-direction: column; gap: 7px; padding: 11px 16px 12px; }
.mix-list i {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 0;
  color: var(--v-ink);
  font-size: 14px;
  font-style: normal;
}
.mix-list b { margin-left: auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mix-list .bt-sw { width: 11px; height: 11px; }
.mix-risk {
  margin: 0 16px 14px;
  padding: 9px 11px;
  border: 1px solid #f0cfc9;
  border-radius: 10px;
  background: #fffaf9;
  color: #8a3128;
  font-size: 11px;
  line-height: 1.55;
}

/* 用 grid 行而不是 table：table 里那一条格子撑不满宽度，右边会留一大片空白 */
.tmx-body { padding: 4px 16px 14px; }
.tmx-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 82px 92px;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #f5f3ee;
  font-size: 12px;
}
.tmx-row:last-child { border-bottom: 0; }
.tmx-axis { padding: 0 0 6px; border-bottom: 0; }
.tmx-scale { display: flex; justify-content: space-between; color: var(--v-soft); font-size: 10px; font-weight: 700; }
.tmx-name { font-weight: 700; }
.tmx-cells { display: flex; gap: 3px; min-width: 0; }
.tmx-cells i { flex: 1 1 0; min-width: 0; height: 16px; border-radius: 3px; background: #f2f0ea; }
.tmx-cells i.l1 { background: #e6e1d6; }
.tmx-cells i.l2 { background: #cfc8b9; }
.tmx-cells i.l3 { background: #aaa294; }
.tmx-cells i.l4 { background: #7d766b; }
.tmx-meta { color: var(--v-soft); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tmx-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.team-top-table th.is-num { text-align: right; }
.tmd-bar-inline { display: inline-block; width: 40px; margin-right: 6px; vertical-align: middle; }

@media (max-width: 1100px) {
  .team-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-main-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .team-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmx-cells i { height: 12px; }
}

/* 图表悬停浮层：替代原生 title（有 1 秒延迟、样式不可控） */
.team-tip {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(28, 28, 28, .94);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.team-tip b { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 800; opacity: .72; }
.team-tip em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; opacity: .72; }
.bt-col, .tmx-cells i { cursor: default; }

/* 消费结构卡与左边趋势卡等高：四行按高度均分撑开 */
.team-mix-card { display: flex; flex-direction: column; }
.team-mix-card > div:last-child { display: flex; flex: 1; flex-direction: column; }
.team-mix-card .mix-list { flex: 1; justify-content: space-evenly; gap: 0; padding: 16px; }

/* 标题与金额同一行 */
.team-trend-title { display: flex; align-items: baseline; gap: 12px; }
.team-trend-title strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}

/* console.css:673 有一条全局 `th, td { border-top }`，叠上 .v-table 的 border-bottom
   就成了满屏双线；表头上方和空单元格里那几条多余的线都是这么来的。只在企业页去掉。 */
.team-view .v-table th,
.team-view .v-table td,
.team-modal .v-table th,
.team-modal .v-table td { border-top: 0; }
.team-view .v-table thead th,
.team-modal .v-table thead th { border-bottom: 1px solid rgba(17, 17, 17, .1); }

/* ── 弹窗精修 ── */
.team-modal { width: min(640px, calc(100vw - 32px)); border-radius: 16px; }
.team-modal-head { padding: 20px 22px 16px; }
.team-modal-head h2 { font-size: 16px; letter-spacing: -.2px; }
.team-modal-body { padding: 20px 22px 22px; }

.team-modal .team-tabs { margin-bottom: 20px; }

.tf-field { margin-bottom: 16px; }
.tf-field > label { margin-bottom: 8px; font-size: 11px; letter-spacing: .02em; }
.tf-row { gap: 14px; }
.tf-input {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border-color: #e4e0d6;
  font-size: 13px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.tf-input:focus { outline: 0; border-color: var(--v-ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); }

.team-role-pick { gap: 10px; }
.trp-opt {
  position: relative;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 11px;
  border-color: #e4e0d6;
  transition: border-color .12s ease, background .12s ease;
}
.trp-opt:hover { border-color: #cdc7ba; }
/* 选中态用单线 + 极浅底，不再用 inset 描边叠出两条粗边 */
.trp-opt.is-on { border-color: var(--v-ink); background: #faf9f6; box-shadow: none; }
.trp-opt.is-on::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v-ink);
}
.trp-opt b { font-size: 13px; letter-spacing: -.1px; }
.trp-opt small { font-size: 11px; line-height: 1.5; }

.tf-actions { gap: 14px; padding-top: 2px; }
.tf-actions .v-btn.primary { height: 38px; padding: 0 18px; border-radius: 999px; font-size: 13px; }
.tf-tip { font-size: 11px; }
.team-section-title { margin: 22px 0 10px; font-size: 11px; letter-spacing: .04em; }
.team-modal .v-table-card { border-radius: 12px; }
.team-modal .v-table th { font-size: 10px; }
.team-modal .v-table td { font-size: 12px; }
.team-modal .team-ops .v-btn { height: 28px; padding: 0 13px; font-size: 12px; }

/* ── 成员详情独立页 ── */
.team-crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; }
.team-crumb a { color: var(--v-soft); text-decoration: none; }
.team-crumb a:hover { color: var(--v-ink); }
.team-crumb svg { width: 12px; height: 12px; fill: none; stroke: #c4bfb4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team-crumb span { font-weight: 700; }

.tmp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tmp-id { display: flex; align-items: center; gap: 13px; }
.tmp-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--v-ink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.tmp-head h1 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.tmp-head p { margin: 4px 0 0; color: var(--v-soft); font-size: 12px; }
.tmp-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.tmp-kpis { margin-bottom: 14px; }
.tmp-card { margin-bottom: 14px; }

/* Tab 分区：每块记录都占满整个面板，而不是挤成底部小卡 */
.tmp-tabs { display: flex; gap: 2px; margin: 4px 0 14px; border-bottom: 1px solid #e8e4da; }
.tmp-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 0;
  background: none;
  color: var(--v-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.tmp-tabs button:hover { color: var(--v-ink); }
.tmp-tabs button.is-on { color: var(--v-ink); }
.tmp-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--v-ink);
}
.tmp-tabs em {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f0ede6;
  color: var(--v-soft);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.tmp-tabs button.is-on em { background: var(--v-ink); color: #fff; }

.tmp-panel { overflow: hidden; }
.tmp-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid #f2efe8;
}
.tmp-toolbar select { height: 32px; }
.tmp-summary { color: var(--v-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.tmp-toolbar .team-export-btn { margin-left: auto; }
.tmp-empty { margin: 0; padding: 34px 16px; color: var(--v-soft); font-size: 13px; text-align: center; }
.tmp-chips-inline { display: flex; flex-wrap: wrap; gap: 5px; }
.tmp-chips-inline .tmd-chip { font-size: 10px; padding: 3px 8px; }

.tmp-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-right: 6px;
  padding: 0 9px;
  border: 1px solid var(--line, #e0dcd2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.tmp-tag.is-on { border-color: #cfe3d3; background: #f2f9f4; color: #177245; }
.tmp-joined { color: var(--v-soft); font-size: 12px; }

.tmp-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 16px 16px; }
.tmp-card .v-table th { padding-left: 16px; padding-right: 16px; }
.tmp-card .v-table td { padding-left: 16px; padding-right: 16px; }
.tmp-card .v-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .tmp-grid { grid-template-columns: minmax(0, 1fr); }
  .tmp-actions { margin-left: 0; }
}

/* 明细工具栏里的下拉：站内通用 .ui-select 偏粗，这里收细一档并统一高度 */
.tmp-toolbar .ui-select {
  height: 32px;
  padding: 0 11px;
  gap: 7px;
  border-radius: 9px;
  border-color: #e4e0d6;
  font-size: 12px;
  font-weight: 600;
  color: var(--v-ink);
  transition: border-color .12s ease, background .12s ease;
}
.tmp-toolbar .ui-select:hover { border-color: #cdc7ba; background: #fbfaf7; }
.tmp-toolbar .ui-select .lf-chev { width: 12px; height: 12px; opacity: .5; }
.tmp-toolbar .team-seg { padding: 2px; }
.tmp-toolbar .team-seg button { height: 28px; padding: 0 12px; font-size: 12px; }
.tmp-toolbar .team-export-btn { height: 32px; padding: 0 14px; font-size: 12px; }

/* 分页 */
.tmp-pager {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-top: 1px solid #f2efe8;
  color: var(--v-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tmp-pager-btns { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tmp-pager-btns .v-btn { height: 30px; padding: 0 13px; font-size: 12px; }
.tmp-pager-btns .v-btn[disabled] { opacity: .35; cursor: not-allowed; }
.tmp-pager-now { color: var(--v-ink); font-weight: 700; }

/* ── 企业设置 · 成员权限策略 ── */
.pol-card { overflow: hidden; }
.pol-axis { padding: 14px 18px; border-bottom: 1px solid #f7f5f0; }
.pol-axis:last-of-type { border-bottom: 0; }
.pol-axis > label { display: block; margin-bottom: 9px; color: var(--v-soft); font-size: 12px; font-weight: 800; }
.pol-sub { margin-left: 8px; font-weight: 500; color: #b4afa5; }
.pol-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pol-opt {
  position: relative;
  padding: 11px 13px;
  border: 1px solid #e4e0d6;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.pol-opt:hover { border-color: #cdc7ba; }
.pol-opt.is-on { border-color: var(--v-ink); background: #faf9f6; }
.pol-opt.is-on::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v-ink);
}
.pol-opt b { display: block; margin-bottom: 2px; font-size: 13px; }
.pol-opt small { display: block; color: var(--v-soft); font-size: 11px; line-height: 1.5; }
.pol-opt small input {
  width: 56px;
  border: 0;
  border-bottom: 1px solid #cdc7ba;
  background: none;
  font: inherit;
  text-align: center;
}
.pol-mods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 14px; }
.pol-mod { display: flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; }
.pol-mod input { accent-color: var(--v-ink); }
.pol-groups { display: flex; gap: 7px; flex-wrap: wrap; }
.pol-foot { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid #f2efe8; }
.pol-hint { color: var(--v-soft); font-size: 11px; }
@media (max-width: 860px) {
  .pol-opts { grid-template-columns: minmax(0, 1fr); }
  .pol-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 轴一决定下游：不满足前置条件的档位锁定 */
.pol-opt.is-locked {
  opacity: .4;
  cursor: not-allowed;
  background: #faf9f6;
}
.pol-opt.is-locked:hover { border-color: #e4e0d6; }
.pol-axis.is-muted { opacity: .5; }

/* 结论条：这套策略下员工实际看到什么 */
.pol-effect {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 18px 14px;
  padding: 11px 14px;
  border: 1px solid #ece9e0;
  border-radius: 11px;
  background: #faf9f6;
  font-size: 12px;
}
.pol-effect b { font-size: 11px; font-weight: 800; color: var(--v-soft); }
.pol-eff-yes, .pol-eff-no, .pol-eff-key {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8e4da;
}
.pol-eff-no { color: #8a3128; border-color: #f0cfc9; background: #fffaf9; }
.pol-eff-key { color: var(--v-soft); }

/* 由策略推导、不可手动勾的可见项 */
.pol-mod.is-derived { color: var(--v-soft); cursor: default; }

/* ── 模型与权限 ── */
.mp-policy { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #ece9e0; border-radius: 11px; background: #faf9f6; font-size: 12px; }
.mp-policy a { color: inherit; text-underline-offset: 3px; }
.mp-card { margin-bottom: 14px; }
.mp-table td { vertical-align: middle; }
.mp-name { font-weight: 700; }
/* 成员列表：一行只讲「用哪个模板 + 四个工作台配没配」，模型名进 tooltip */
.wp-panel { overflow: hidden; }
.wp-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid #f2efe8; }
.wp-search { width: 220px; }
.wp-count { color: var(--v-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.wp-bulk { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.wp-bulk select { height: 32px; }
.wp-bulk .v-btn { height: 32px; padding: 0 14px; font-size: 12px; }
.wp-list td, .wp-list th { vertical-align: middle; }
.wp-check { width: 42px; }
.wp-check input { accent-color: var(--v-ink); }
.wp-name { font-weight: 700; }
.wp-none { padding: 26px 16px; color: var(--v-soft); text-align: center; }
.wp-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 1px solid var(--v-ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.wp-tag.is-custom { border-color: #e0dcd2; color: var(--v-soft); }
.wp-tag.is-none { border-style: dashed; border-color: #ddd8cd; color: #b4afa5; }
.wp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wp-chip {
  padding: 4px 11px;
  border: 1px dashed #ddd8cd;
  border-radius: 999px;
  background: none;
  color: #b4afa5;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.wp-chip:hover { border-color: #b4afa5; color: var(--v-ink); }
.wp-chip.is-on { border-style: solid; border-color: var(--v-ink); background: var(--v-ink); color: #fff; }

/* 模板卡：横向铺开，人多也不挤 */
.wp-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wp-tpl { padding: 0; }
.wp-tpl-head { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px 12px; border-bottom: 1px solid #f2efe8; }
.wp-tpl-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.wp-tpl-head p { margin: 4px 0 0; color: var(--v-soft); font-size: 11px; }
.wp-tpl-head .team-ops { margin-left: auto; }
.wp-tpl-head .v-btn { height: 26px; padding: 0 11px; font-size: 11px; }
.wp-tpl-grants { padding: 6px 16px 14px; }
.wp-tpl-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f7f5f0; font-size: 12px; }
.wp-tpl-row:last-child { border-bottom: 0; }
.wp-tpl-row span { flex: 0 0 44px; color: var(--v-soft); }
.wp-tpl-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-tpl-row i { font-style: normal; }
.wp-invalid-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff0f0;
  color: #d72c2c;
  font-size: 10px;
  font-weight: 700;
}
.wp-invalid-note {
  margin: 0 16px 14px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff4f3;
  color: #c62d2d;
  font-size: 11px;
  line-height: 1.5;
}
.team-apply-alert {
  padding: 15px 16px;
  border-radius: 12px;
  background: #fff4f3;
}
.team-apply-alert.is-danger { color: #b92929; }
.team-apply-alert > strong { display: block; margin-bottom: 5px; font-size: 15px; }
.team-apply-alert > p { margin: 0 0 12px; color: #6e5e5e; font-size: 12px; }
.team-apply-facts { display: grid; gap: 7px; }
.team-apply-fact,
.team-apply-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.team-apply-fact span,
.team-apply-summary span { color: var(--v-soft); font-size: 12px; }
.team-apply-fact b { color: #d72c2c; font-size: 12px; }
.team-apply-summary { display: grid; gap: 10px; margin-top: 16px; }
.team-apply-summary b { font-size: 13px; }
.team-apply-summary p {
  margin: 2px 0 0;
  color: var(--v-soft);
  font-size: 12px;
  line-height: 1.6;
}

.wb-form .tf-field > label { margin-bottom: 8px; }
.wb-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.wb-model {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #e4e0d6;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}
.wb-model:hover { border-color: #cdc7ba; }
.wb-model.is-on { border-color: var(--v-ink); background: #faf9f6; }
.wb-model input { accent-color: var(--v-ink); }
@media (max-width: 720px) {
  .wb-models { grid-template-columns: minmax(0, 1fr); }
}

/* 模型清单：勾选与「设为默认」合并在一行，不再单独放一个空下拉 */
.wb-hint { margin-left: 8px; color: #b4afa5; font-size: 11px; font-weight: 500; }

/* 分工作台限额 */
.wb-limit { display: flex; align-items: center; gap: 8px; }
.wb-limit-unit { color: #8c877d; font-size: 13px; }
.wb-limit input { width: 130px; }
.wb-limit-used { color: #8c877d; font-size: 12px; }
.wb-quota { display: inline-flex; align-items: baseline; gap: 6px; }
.wb-quota-used { color: #55514a; font-variant-numeric: tabular-nums; }
.wb-quota-cap { color: #8c877d; font-size: 12px; font-variant-numeric: tabular-nums; }
.wb-quota-bar { position: relative; display: block; width: 96px; height: 4px; margin-top: 4px;
  border-radius: 999px; background: #eceae4; overflow: hidden; }
.wb-quota-bar i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: 999px; background: #7a8f6b; }
.wb-quota-bar.is-high i { background: #c08a3e; }
.wb-quota-bar.is-full i { background: #b4643f; }
.wb-list { border: 1px solid #e4e0d6; border-radius: 11px; overflow: hidden; max-height: 300px; overflow-y: auto; }
.wb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid #f5f3ee;
  font-size: 13px;
  cursor: pointer;
}
.wb-row:last-child { border-bottom: 0; }
.wb-row:hover { background: #faf9f6; }
.wb-row.is-on { background: #faf9f6; }
.wb-row input { accent-color: var(--v-ink); }
.wb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-default {
  flex: none;
  padding: 3px 11px;
  border: 1px solid #e0dcd2;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--v-soft);
  cursor: pointer;
}
.wb-default:hover { border-color: #cdc7ba; }
.wb-default.is-on { border-color: var(--v-ink); background: var(--v-ink); color: #fff; }
.wb-empty { margin: 0; padding: 24px 14px; color: var(--v-soft); font-size: 12px; text-align: center; }

/* ── 阶段 A：企业员工工作台与我的密钥 ── */
.enterprise-model-readonly {
  cursor: default !important;
}
.enterprise-model-readonly .lf-chev {
  display: none !important;
}

.enterprise-workbench-empty {
  flex: none;
  margin: 18px 24px;
  padding: 16px 18px;
  border: 1px solid #ece9e0;
  border-radius: 12px;
  background: #faf9f6;
  color: var(--v-soft);
  line-height: 1.7;
}
[data-view="chat"].enterprise-workbench-unconfigured .chat-composer2,
.studio-view.enterprise-workbench-unconfigured .studio-composer {
  display: none !important;
}

.enterprise-staff-key-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #ece9e0;
  border-radius: 11px;
  background: #faf9f6;
}
.enterprise-staff-keys-readonly .keys-table-card td:last-child {
  color: var(--v-soft);
}

/* 工作台接近上限标记 */
.wp-chip.is-near { position: relative; }
.wp-chip-dot { display: inline-block; width: 5px; height: 5px; margin-left: 5px;
  border-radius: 50%; background: #c08a3e; vertical-align: middle; }

/* 员工无建 Key 能力：调用日志隐藏密钥(2)与分组(3)两列 */
.v-table.logs-no-key th:nth-child(2), .v-table.logs-no-key td:nth-child(2),
.v-table.logs-no-key th:nth-child(3), .v-table.logs-no-key td:nth-child(3) { display: none; }

/* 工作台分组 pill：当前值加粗，与"比例 1:1"一致 */
.workbench-group-sel .group-val { font-weight: 700; }

/* 模型广场不提供收起：筛选栏常驻，收起按钮在广场模式下隐藏 */
.sidebar.models-filter-active .collapse-btn { display: none; }

/* 成员备注：主名下方一行小字 */
.team-member-remark { display: block; margin-top: 2px; font-size: 12px; color: #8c877d; }
/* 用户名小字：显示名称可以重复，排查问题时要看唯一的用户名（查日志、查凭证都按它） */
.team-member-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--v-soft); font-variant-numeric: tabular-nums; }

/* 岗位模板弹窗的模型勾选列表：比工作台弹窗矮一点，四个工作台摞得下 */
.tpl-model-list { max-height: 150px; overflow-y: auto; width: 100%; }
.team-template-form fieldset .ui-select { align-self: flex-start; min-width: 220px; }
/* .eqc-form input 的通用外观（32px 高/140px 最小宽/描边）会把勾选框撑成大黑块并挤掉模型名，豁免 */
.team-template-form .wb-row input[type="checkbox"] {
  height: auto; width: auto; min-width: 0; padding: 0; border: none; flex: none;
}

/* 岗位模板：四个工作台左右并排（对话|生图|视频|音频），一屏看全 */
.team-modal-wide { width: min(1160px, calc(100vw - 32px)); }
.eqc-form.team-template-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.team-template-form > #ttName,
.team-template-form > #ttSave,
.team-template-form > .eqc-msg { grid-column: 1 / -1; }
/* 网格项默认 min-width:auto，会被最长模型名撑破格子压到隔壁列——强制可收缩，名字走省略号 */
.eqc-form.team-template-form fieldset { min-width: 0; max-width: 100%; overflow: hidden; }
.team-template-form .tpl-model-list { min-width: 0; }
.team-template-form .tpl-model-list { max-height: 320px; }
@media (max-width: 980px) {
  .eqc-form.team-template-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 生图参数弹层：比例/分辨率/画质/数量收在一处，工具条只留一个入口 */
.pop-img-params { width: 340px; padding: 14px; }
.pop-img-params .ip-sec + .ip-sec { margin-top: 12px; }
.pop-img-params .ip-label { margin: 0 0 6px; font-size: 12px; color: #8c877d; font-weight: 600; }
.pop-img-params .ratio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pop-img-params .ip-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.pop-img-params .ip-seg span { text-align: center; }
.pop-img-params .ip-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid #eceae4;
  font-size: 12px; color: #8c877d;
}
/* 触发器摘要：当前设置一眼可见 */
.ratio-trigger .pv-sep { margin: 0 5px; font-style: normal; opacity: .35; }
.ratio-trigger .pv-res, .ratio-trigger .pv-quality, .ratio-trigger .pv-count { font-weight: 700; }

/* ============ 成员筛选下拉：两行选项 + 内嵌搜索 ============ */
/* 200+ 人的企业靠滚动找人不现实，所以选项过多时下拉自带搜索框并限高滚动。 */
.pop-search { padding: 6px 6px 4px; border-bottom: 1px solid #f2efe8; }
.pop-search-input {
  width: 100%; height: 32px; padding: 0 10px;
  border: 1px solid #e8e8e0; border-radius: 8px;
  background: #fbfbf8; font: inherit; font-size: 13px; color: #1f1f1c;
}
.pop-search-input::placeholder { color: var(--v-soft); font-weight: 500; }
.pop-search-input:focus { outline: 0; border-color: var(--v-ink); background: #fff; }

.pop-scroll { max-height: 288px; overflow-y: auto; padding: 6px; }
.pop-menu-search { padding: 0; min-width: 232px; }

.pop-opt-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.pop-opt-name { display: block; }
/* 账号是辅助信息：小一号、弱化、等宽数字，长了截断而不是把下拉撑宽 */
.pop-opt-sub {
  display: block; max-width: 168px; overflow: hidden; text-overflow: ellipsis;
  font-size: 11px; font-weight: 600; color: var(--v-soft); font-variant-numeric: tabular-nums;
}
/* .pop-opt 是 display:flex，作者样式会盖过 [hidden] 自带的 display:none，
   不写这条的话搜索过滤设了 hidden 元素照样显示（上面 .pop[hidden] 也是同一个原因才有的）。 */
.pop-opt[hidden] { display: none; }
.pop-opt-2l { align-items: flex-start; padding-top: 7px; padding-bottom: 7px; }
.pop-opt-2l.is-on::after { margin-top: 4px; }
.pop-empty { margin: 0; padding: 14px 11px; color: var(--v-soft); font-size: 12px; text-align: center; }

/* 用量明细的成员列同样是「显示名 + 账号」两行 */
.usage-member-cell { line-height: 1.35; }

/* ============ 成员管理：搜索工具条 ============ */
.members-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.members-search { width: 280px; max-width: 100%; }
.members-count { color: var(--v-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.members-empty { text-align: center; color: var(--v-soft); padding: 24px; }

/* 用量分析日历：未来日期没有数据，禁用并弱化（调用日志那套没有这个限制，样式互不影响） */
.dp-day:disabled { color: rgba(17, 17, 17, .22); cursor: not-allowed; background: none; }
.dp-day:disabled:hover { background: none; }

/* 用量明细的 token 列：等宽数字右对齐，上下两行数字才能竖着对齐比较。
   通用 .v-table 没有 .is-num 规则（那条只对 .team-top-table/.tmd-table 生效），所以这里自己写。 */
/* 必须带 .v-table 前缀：.v-table th{text-align:left} 是 (0,1,1)，光写 .usage-th-num (0,1,0) 压不过它，
   结果表头左对齐、数值右对齐，看上去就像数字跑到了隔壁列。 */
.v-table th.usage-th-num, .v-table td.usage-token {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* 用量明细的列宽与对齐：数值取自 column-tuner.html 调整器的实测标尺，用户逐列拖出来定稿的。
   八列全部居中（之前左对齐时，宽列里的文字堆在左边，观感上像和表头没对齐）。
   合计 100.0%。改动前先用调整器试，别直接在这里猜数字。
   text-align 必须带 !important：console-overrides.css 里有 `.v-table th{text-align:left}` 之类的规则，
   另外 .usage-token / .usage-th-num 自带右对齐，都要压过。 */
.usage-detail-card { overflow-x: auto; }
.usage-detail-table { table-layout: fixed; width: 100%; min-width: 1100px; }
.usage-detail-table th, .usage-detail-table td { overflow: hidden; text-overflow: ellipsis; }
.usage-detail-card .usage-detail-table th:nth-child(1),
.usage-detail-card .usage-detail-table td:nth-child(1) { width: 11.2%; text-align: center !important; }  /* 时间 */
.usage-detail-card .usage-detail-table th:nth-child(2),
.usage-detail-card .usage-detail-table td:nth-child(2) { width: 16.5%; text-align: center !important; }  /* 成员 */
.usage-detail-card .usage-detail-table th:nth-child(3),
.usage-detail-card .usage-detail-table td:nth-child(3) { width: 13.9%; text-align: center !important; }  /* 类型 */
.usage-detail-card .usage-detail-table th:nth-child(4),
.usage-detail-card .usage-detail-table td:nth-child(4) { width: 14.3%; text-align: center !important; }  /* 模型 */
.usage-detail-card .usage-detail-table th:nth-child(5),
.usage-detail-card .usage-detail-table td:nth-child(5) { width: 11.2%; text-align: center !important; }  /* 参数 */
.usage-detail-card .usage-detail-table th:nth-child(6),
.usage-detail-card .usage-detail-table td:nth-child(6) { width: 10.3%; text-align: center !important; }  /* 输入 */
.usage-detail-card .usage-detail-table th:nth-child(7),
.usage-detail-card .usage-detail-table td:nth-child(7) { width: 11.2%; text-align: center !important; }  /* 输出 */
.usage-detail-card .usage-detail-table th:nth-child(8),
.usage-detail-card .usage-detail-table td:nth-child(8) { width: 11.4%; text-align: center !important; }  /* 消费 */
/* 金额别贴着卡片右边缘。必须 !important：overrides 里的 `.v-table td{padding:...!important}` 会盖掉 */
.usage-detail-card .usage-detail-table th:last-child,
.usage-detail-card .usage-detail-table td:last-child { padding-right: 48px !important; }

/* 成员是两行（显示名 + 账号），账号超长要截断而不是把列撑开 */
.usage-detail-table .team-member-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 流水明细的用途筛选：一次调用产生 4 条内部记录，不筛选就找不到真正的充值 */
.ledger-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* 成员管理：已移除历史周期的显隐开关 */
.members-removed-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  color: var(--v-soft); font-size: 12px; cursor: pointer; white-space: nowrap;
}

/* 用量明细可排序表头：整格可点，当前排序列高亮 + 实心箭头 */
.usage-sort-th { cursor: pointer; user-select: none; white-space: nowrap; transition: color .12s; }
.usage-sort-th:hover { color: var(--v-ink); }
.usage-sort-th:focus-visible { outline: 2px solid var(--v-ink); outline-offset: -2px; border-radius: 4px; }
/* 当前排序列整体加重：表头默认是 11px 弱化灰字，只靠一个小箭头根本认不出来 */
.usage-sort-th.is-sorted { color: var(--v-ink); font-weight: 900; }
/* 箭头绝对定位，不占文字流：列内容居中后，箭头若参与排版会把表头文字挤离中心，
   和下面居中的单元格对不齐；绝对定位同时天然解决了"切换排序时表头左右跳动"。 */
.usage-sort-th { position: relative; }
.usage-sort-arrow { display: inline-block; margin-left: 4px; font-size: 13px; line-height: 1; pointer-events: none; }  /* 末列有 48px 内边距，箭头别飘到边上 */
/* 未排序列悬停时露出一个淡箭头，提示"这列可以点" */
.usage-sort-th:not(.is-sorted):hover .usage-sort-arrow::after { content: "↓"; opacity: .35; }

/* 用量明细刷新中：保留旧表格只压暗，避免"点一下整个表消失再出来"。
   跨境往返 0.7-1.7 秒，清空重绘的空窗期非常明显。 */
#teamUsageBody.is-busy { opacity: .5; pointer-events: none; transition: opacity .12s; }

/* ===== 团队排行榜（#rank，企业全员可见） =====
   版式与团队概览同源：直接复用 .team-kpis/.tk/.team-top-table/.team-rank/.tmd-bar，
   这里只补「rank 页自己的间距」和「我那一行」两件事。
   注意不能给这个 section 加 .team-view class —— 那个 class 被导出逻辑
   （console.js 的 .team-view.is-active [id$='Body'] 选择器）当成企业管理页在用。 */
.rank-view .view-head { margin-bottom: 14px !important; }
.rank-view .team-kpis { margin: 0 0 14px; }
.rank-view .rank-board-card { margin: 0; }
/* 分页条在 .view.is-active 作用域下才有布局样式，榜卡里的这条要单独给间距 */
.rank-view .log-pager { padding: 10px 16px 14px; }

/* 前三名把名次徽标描黑，其余保持浅灰。不用奖牌图形，跟概览页的榜单保持同一种表达。 */
.rank-table .team-rank.is-top { border-color: var(--v-ink); color: var(--v-ink); font-weight: 800; }

/* 自己那一行整行提亮，一眼定位到「我在哪」。 */
.rank-table tr.rank-me > td { background: rgba(242, 55, 29, .06); }
.rank-me-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  border: 1px solid var(--v-red); border-radius: 999px;
  font-size: 11px; line-height: 1.6; color: var(--v-red);
}
.rank-empty { padding: 24px 0; text-align: center; color: var(--v-soft); font-size: 13px; }

/* ===== 对话气泡里的 Markdown 排版 ===== */
/* 渲染过的气泡必须退回 white-space: normal —— 块级标签自己管换行，
   再叠 pre-wrap 会把标签之间的换行也画出来，段落之间凭空多出空行。
   代码块单独保留 pre-wrap（它就是要原样保留缩进）。 */
.bubble.is-md { white-space: normal; }

.bubble.is-md > :first-child { margin-top: 0; }
.bubble.is-md > :last-child { margin-bottom: 0; }
.bubble.is-md p { margin: 0 0 10px; }

.bubble.is-md h3, .bubble.is-md h4, .bubble.is-md h5 {
  margin: 16px 0 8px; font-weight: 800; letter-spacing: -.2px; line-height: 1.35;
}
.bubble.is-md h3 { font-size: 16px; }
.bubble.is-md h4 { font-size: 15px; }
.bubble.is-md h5 { font-size: 14px; color: var(--v-muted); }

.bubble.is-md ul, .bubble.is-md ol { margin: 0 0 10px; padding-left: 22px; }
.bubble.is-md li { margin: 3px 0; }
/* 嵌套列表贴紧父项，别再叠一层外边距 */
.bubble.is-md li > ul, .bubble.is-md li > ol { margin: 3px 0 0; }

.bubble.is-md strong { font-weight: 800; }
.bubble.is-md a { color: var(--v-red); text-decoration: underline; text-underline-offset: 2px; }

.bubble.is-md code {
  padding: 1px 5px; border-radius: 5px;
  background: rgba(17, 17, 17, .06); border: 1px solid rgba(17, 17, 17, .08);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em;
}
/* 代码块：横向自己滚，绝不把气泡撑破 */
.bubble.is-md pre {
  margin: 0 0 10px; padding: 11px 13px; border-radius: 9px;
  background: #f4f3ee; border: 1px solid var(--v-line-soft);
  overflow-x: auto; white-space: pre;
}
.bubble.is-md pre code {
  padding: 0; border: 0; background: none; font-size: 12.5px; line-height: 1.55;
}

.bubble.is-md blockquote {
  margin: 0 0 10px; padding: 2px 0 2px 12px;
  border-left: 3px solid var(--v-line); color: var(--v-muted);
}
.bubble.is-md hr { margin: 14px 0; border: 0; border-top: 1px solid var(--v-line-soft); }

.bubble.is-md table { width: 100%; margin: 0 0 10px; border-collapse: collapse; font-size: 13px; }
.bubble.is-md th, .bubble.is-md td {
  padding: 6px 9px; border: 1px solid var(--v-line-soft); text-align: left; vertical-align: top;
}
.bubble.is-md th { background: #faf9f5; font-weight: 800; }

/* ===== 连接中断横幅 =====
   后端短暂不可用（典型场景：部署重启约 40 秒）时原地提示并自动重连，
   而不是把用户踢回登录页 —— 他的会话 cookie 还有效，踢走纯属误伤。 */
.conn-lost-bar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 18px;
  border-radius: 999px;
  background: var(--v-ink);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}
.conn-lost-retry {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.conn-lost-retry:hover { background: #fff; color: var(--v-ink); }

/* ===== 客服弹窗 =====
   外壳复用 .km-modal / .km-mask，这里只补二维码区的排版。 */
.support-modal { width: min(380px, calc(100vw - 32px)); }
/* 标题下没有说明文字了，这里自己撑开与标题的间距（原来是靠 .km-sub 撑的） */
.support-body { padding: 18px 22px 24px; }
.support-scan {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 16px 18px;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 14px;
  background: #fff;
}
.support-scan img {
  width: 220px;
  height: 220px;
  display: block;
  border-radius: 8px;
}
.support-scan h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--v-muted);
}
.support-qr-fallback {
  margin: 0;
  padding: 60px 12px;
  font-size: 13px;
  color: var(--v-muted);
  text-align: center;
}

/* 计费明细的悬浮提示：光标变问号，提示这里有东西可看 */
.v-table td.has-tip { cursor: help; text-decoration: underline dotted rgba(17, 17, 17, .35); text-underline-offset: 3px; }

/* 密钥页分组下拉的倍率：靠右对齐、弱化颜色，方便扫一眼比价 */
.key-group-ratio {
  margin-left: auto;
  padding-left: 10px;
  font-style: normal;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--v-muted);
  white-space: nowrap;
}
.key-group-option.is-on .key-group-ratio { color: inherit; }
