
/* ---------- 模型广场（一比一复刻 neartoken.cc/pricing） ---------- */

.market { display: block; }

.market-top {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin: 14px 0 10px;
  border: 1px solid var(--nt-line); border-radius: 12px; background: rgba(255,255,255,.02);
}

.market-search {
  flex: 1 1 220px; min-width: 160px; height: 30px; padding: 0 10px;
  border: 1px solid var(--nt-line); border-radius: 9px;
  background: rgba(0,0,0,.22); color: var(--nt-ink); font-size: 12px;
}
.market-search::placeholder { color: var(--nt-faint); }
.market-search:focus { outline: 1px solid var(--nt-accent); }

.market-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.market-seg { display: inline-flex; border: 1px solid var(--nt-line); border-radius: 9px; overflow: hidden; }
.market-seg button {
  height: 28px; padding: 0 9px; border: 0; background: transparent;
  color: var(--nt-muted); font-size: 11.5px;
}
.market-seg button + button { border-left: 1px solid var(--nt-line); }
.market-seg button[aria-pressed="true"] { color: var(--nt-ink); background: var(--nt-accent-soft); }

.market-tool {
  height: 28px; padding: 0 10px; border: 1px solid var(--nt-line); border-radius: 9px;
  background: transparent; color: var(--nt-muted); font-size: 11.5px;
}
.market-tool.on { color: var(--nt-ink); border-color: var(--nt-accent); }

.market-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
.market { width: 100%; }
/* 卡片列数按右侧实际可用宽度计算，最多两列。 */

.market-aside {
  position: sticky; top: 10px;
  max-height: calc(100vh - 20px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 12px; border: 1px solid var(--nt-line); border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.market-aside h3 { margin: 0; font-size: 13px; }
.market-aside h4 { margin: 14px 0 7px; font-size: 11px; color: var(--nt-muted); font-weight: 600; }
.market-aside .note { font-size: 10.5px; line-height: 1.5; margin: 6px 0 0; }
.ma-head { display: flex; align-items: baseline; justify-content: space-between; }
.ma-head .link { border: 0; background: transparent; padding: 0; }

.market-chips { display: flex; flex-wrap: wrap; gap: 5px; }
/* 左侧筛选栏一律竖排：每个分组/chip 占一行，从上往下读 */
.market-aside .market-chips { flex-direction: column; flex-wrap: nowrap; gap: 6px; align-items: flex-start; }
/* 类型/供应商在左栏有限宽度内横向堆叠，不超出、不撑宽侧栏 */
.market-aside .market-chips.chips-row { flex-direction: row; flex-wrap: wrap; gap: 5px; align-items: center; max-width: 100%; }
.market-aside .chips-row .market-chip { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.market-chip-wrap { position: relative; display: inline-flex; align-items: center; }
.market-chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 25px; padding: 0 8px; border: 1px solid var(--nt-line); border-radius: 999px;
  background: transparent; color: var(--nt-muted); font-size: 10.5px; white-space: nowrap;
}
.market-chip.on, .market-chip-wrap.on > .market-chip {
  color: var(--nt-ink); border-color: var(--nt-accent); background: var(--nt-accent-soft);
}
.market-chip .ratio { font-family: var(--nt-code); color: var(--nt-faint); font-size: 10px; }
.market-chip .gb { display: inline-flex; align-items: center; gap: 3px; }
/* 小标签统一成「低价」那一种样式：同一尺寸、圆角、字重与描边，只换底色。 */
.gb-tag {
  padding: 1px 5px; border-radius: 4px; font-size: 9.5px; line-height: 1.5;
  font-weight: 700; color: #fff; opacity: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28);
}
.gb-tag.lvl1, .gb-tag.lvl2, .gb-tag.green { background: #2f8f68; }
.gb-tag.red { background: #b0475c; }
.gb-tag.pink { background: #8b4f9e; }
.gb-tag.blue { background: #3f6fa8; }
.gb-tag.plain { background: #5a6270; }
.gb-tag.gold { background: #b58a2b; }
.gb-tag.slate { background: #4a5568; }
.gb-tag.cyan { background: #3f8fa3; }
.gb-rest { color: var(--nt-ink); }

.chip-toggle {
  width: 16px; height: 24px; padding: 0; border: 0; background: transparent;
  color: var(--nt-faint); font-size: 10px; line-height: 1;
}
.chip-toggle.on { color: #4cc38a; }

.market-main { min-width: 0; container-type: inline-size; }
.market-count { font-size: 13px; font-weight: 600; margin: 2px 0 10px; }
.market-main > .note { margin-top: 10px; }

/* 固定宿主窗口下两张卡并排；右侧不足 470px 时退回一列。
   使用容器宽度而非外层窗口宽度，避免宿主侧栏占位导致误判。 */
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
@container (max-width: 469px) { .model-grid { grid-template-columns: minmax(0, 1fr); } }
.model-grid.as-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* 列表模式：压缩成紧凑行，隐藏描述/状态条/端点等非核心信息 */
.model-grid.as-list .mc { padding: 8px 12px; min-height: 0; }
.model-grid.as-list .mc-desc,
.model-grid.as-list .mc-stats,
.model-grid.as-list .mc-line:nth-of-type(2),
.model-grid.as-list .mc-detail { display: none; }
.model-grid.as-list .mc-billing { margin: 4px 0; }
.model-grid.as-list .mc-prices { margin-bottom: 6px; }
.model-grid.as-list .mc-line { margin-top: 4px; }

.mc {
  display: flex; flex-direction: column; min-width: 0; cursor: pointer;
  padding: 12px; border: 1px solid var(--nt-line); border-radius: 12px;
  background: rgba(255,255,255,.02); transition: border-color .12s, background .12s, opacity .12s;
}
.mc:hover { border-color: var(--nt-accent); }
.mc.on { border-color: var(--nt-accent); background: var(--nt-accent-soft); }
.mc.off { opacity: .48; }
.mc.off:hover { opacity: .8; }
.mc-flag { flex: none; font-size: 9.5px; color: var(--nt-muted); white-space: nowrap; }
.mc.on .mc-flag { color: var(--nt-accent); font-weight: 600; }

/* 两级标签：功能在前（饱和色），价格/品质在后（柔和色） */
.gb-tag.purple { background: #7b52b8; }
.gb-tag.teal { background: #2f8f8a; }
.chip-group-name.low { color: #4cc38a; font-weight: 700; font-size: 11px; }
.chip-group-name.official { color: var(--magpie-accent, #5b8def); }
.chip-group-name.full { color: var(--magpie-red, var(--nt-rose)); }
.chip-group-name.other { color: var(--magpie-fg-2, var(--nt-muted)); }
.chip-group-name.func { color: #9b7ce0; font-weight: 700; font-size: 11px; }
.chip-group-name.egg { color: #e0b34a; font-weight: 700; font-size: 11px; }
.chip-group-name.empty { color: var(--nt-faint); font-weight: 600; font-size: 11px; }
.market-chip.none { opacity: .45; cursor: default; pointer-events: none; }
.chip-group { width: 100%; margin: 2px 0 4px; }
.chip-group-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; color: var(--nt-faint); margin: 6px 0 3px; letter-spacing: .04em; }
.chip-group-count { font-family: var(--nt-code); font-size: 10px; font-weight: 600; color: var(--nt-faint); letter-spacing: 0; }

/* 分组 chip 保持原单行胶囊，不加任何竖条：
   含启用模型的整块淡绿提亮，全停的整体灰化；蓝框仍专用于当前筛选。 */
.market-chip.group-chip.has-enabled:not(.on) {
  border-color: rgba(76,195,138,.55); background: rgba(76,195,138,.10); color: var(--nt-ink);
}
/* 没有模型走这一组分时明确「熄灭」：降透明 + 去色，避免彩色标签看起来仍像已启用。 */
.market-chip.group-chip.all-off { opacity: .38; filter: grayscale(.85); }
.market-chip.group-chip.all-off:hover { opacity: .55; filter: grayscale(.5); }

/* 选中分组的横幅：与官网一致，标签 + 倍率 + 说明，横跨模型区顶部。 */
.market-group-banner {
  border: 1px solid var(--nt-line); border-radius: 12px;
  background: rgba(255,255,255,.03); padding: 10px 14px; margin: 0 0 12px;
}
.mgb-head { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.mgb-head .gb { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.mgb-head .gb-tag { flex: none; }
.mgb-head .gb-rest { color: var(--nt-ink); font-weight: 700; }
.mgb-head .ratio { font-family: var(--nt-code); font-size: 11px; color: var(--nt-muted); }
.mgb-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: var(--nt-muted); }

/* 供应商 chip：品牌图标在前，名称与模型数在后，和官网供应商面板一致。 */
.market-chip.vendor-chip { gap: 5px; }
.market-chip .vendor-icon {
  width: 16px; height: 16px; flex: none; object-fit: contain; border-radius: 3px;
}
.market-chip .vendor-icon-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; background: var(--nt-line); color: var(--nt-muted);
}
.market-chip .vendor-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.market-chip .vendor-count { flex: none; font-family: var(--nt-code); font-size: 10px; color: var(--nt-faint); }
.market-chip.vendor-chip.on .vendor-count { color: var(--nt-ink); }

/* 充值卡：站点「添加资金」缩小版 */
.tp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--nt-line); margin-bottom: 8px; }
.tp-badge { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(76,195,138,.14); color: #4cc38a; font-size: 15px; font-weight: 700; }
.tp-head h2 { font-size: 14px; }
/* 添加资金大卡：跨整行、两栏铺开，高度按内容自然展开 */
.tp-wide { padding: 18px 20px 20px; }
/* 2 列 × 3 行显式网格：每行的左右单元等高，兑换码框与输入金额框平行对齐 */
.tp-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 26px; row-gap: 0; margin-top: 4px; }
.tp-cell { min-width: 0; }
.tp-body > .tp-cell:nth-child(3), .tp-body > .tp-cell:nth-child(4) { padding-bottom: 8px; }
.tp-label { display: block; font-size: 10.5px; color: var(--nt-muted); margin: 12px 0 8px; }
.tp-body > .tp-cell:first-child > .tp-label, .tp-body > .tp-cell:nth-child(2) > .tp-label { margin-top: 0; }
.tp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-methods { display: flex; flex-direction: column; gap: 8px; }
.tp-method { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--nt-line); border-radius: 10px; background: rgba(255,255,255,.02); color: var(--nt-ink); font-size: 12px; }
.tp-method .tp-na { margin-left: auto; font-size: 10px; color: var(--nt-muted); }
.tp-method[aria-pressed="true"] { border-color: var(--nt-accent); background: var(--nt-accent-soft); }
.tp-method.tp-off-method { opacity: .5; cursor: not-allowed; color: var(--nt-muted); background: rgba(255,255,255,.02); }
.tp-method.tp-off-method .tp-micon { filter: grayscale(1); }
.tp-micon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.tp-micon.ali { background: #1677ff; }
.tp-micon.wx { background: #07c160; }
.tp-custom-row { display: flex; align-items: center; gap: 10px; }
.tp-field { height: 36px; flex: 0 0 auto; }
.tp-field input { width: 100%; font-size: 13px; }
.tp-due { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; padding: 0 11px; border: 1px solid var(--nt-line); border-radius: 9px; font-size: 11px; color: var(--nt-muted); }
.tp-due b { color: var(--nt-ink); font-family: var(--nt-code); font-size: 13px; }
.tp-input { flex: 1; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--nt-line); border-radius: 9px; background: rgba(0,0,0,.2); color: var(--nt-ink); font-size: 12px; }
.tp-wide > .note { margin-top: 14px; }
@media (max-width: 860px) { .tp-body { grid-template-columns: minmax(0, 1fr); } .tp-cell { padding-bottom: 8px; } }
@media (max-width: 620px) { .tp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 64px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--nt-line); border-radius: 10px; background: rgba(255,255,255,.02); color: var(--nt-ink);
}
.tp-tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tp-tile .tp-pay { font-size: 10px; color: var(--nt-muted); }
.tp-tile .tp-off { position: absolute; right: 8px; top: 8px; font-size: 9.5px; color: #4cc38a; }
.tp-tile[aria-pressed="true"] { border-color: var(--nt-accent); background: var(--nt-accent-soft); box-shadow: inset 0 0 0 1px var(--nt-accent); }

/* 推荐计划长条卡 */
.rf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rf-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(155,124,224,.16); color: #9b7ce0; font-size: 16px; }
.rf-text { flex: 1 1 240px; }
.rf-text h2 { font-size: 13px; }
.rf-invites { text-align: center; min-width: 54px; }
.rf-invites .k { font-size: 10px; color: var(--nt-muted); }
.rf-invites .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rf-link { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--nt-line); border-radius: 10px; background: rgba(0,0,0,.2); overflow: hidden; }
.rf-link span { font-family: var(--nt-code); font-size: 11.5px; color: var(--nt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-copy { width: 36px; height: 36px; border: 1px solid var(--nt-accent); border-radius: 10px; background: var(--nt-accent-soft); color: var(--nt-accent); font-size: 15px; }
@media (max-width: 620px) { .tp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mc-image { border-color: rgba(139,79,158,.5); }
.mc-video { border-color: rgba(214,140,60,.5); }
.mc-audio { border-color: rgba(63,111,168,.5); }
.mc-embedding { border-color: rgba(47,143,104,.5); }

.mc-head { display: flex; align-items: center; gap: 8px; }
.mc-head > .grow { min-width: 0; }
.mc .gb { min-width: 0; overflow-wrap: anywhere; }
.mc-line .v { min-width: 0; overflow-wrap: anywhere; }
.mc-vicon {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nt-accent-soft); color: var(--nt-accent); font-size: 12px; font-weight: 700;
}
.mc-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-vendor { font-size: 10px; color: var(--nt-muted); }
.mc-copy { border: 0; background: transparent; color: var(--nt-faint); font-size: 13px; padding: 2px 4px; }
.mc-copy:hover { color: var(--nt-accent); }

.mc-desc {
  margin: 9px 0 8px; font-size: 10.5px; line-height: 1.55; color: var(--nt-muted);
  min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-billing { font-size: 10.5px; font-weight: 600; margin-bottom: 7px; }
.mc-billing.dyn { color: #e0a44a; }
.mc-billing.flat { color: #5aa9e6; }

.mc-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 9px; }
.mc-prices.one { grid-template-columns: 1fr; }
.mc-prices > div { display: flex; flex-direction: column; gap: 2px; }
.mc-prices span { font-size: 10px; color: var(--nt-muted); }
.mc-prices b { font-family: var(--nt-code); font-size: 11.5px; font-weight: 600; color: var(--nt-ink); }

.mc-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 5px 0; font-size: 10px; }
.mc-line .k, .mc-stats .k { color: var(--nt-muted); margin-right: 4px; }
.mc-line .v, .mc-stats .v { color: var(--nt-ink); font-family: var(--nt-code); font-size: 10px; }
.mc-more { color: var(--nt-faint); font-family: var(--nt-code); }

.mc-stats {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--nt-line); font-size: 10px;
}
.mc-stats > span { display: inline-flex; align-items: baseline; gap: 3px; }
.mc-bar { display: inline-flex; gap: 1px; height: 8px; align-items: center; }
.mc-bar i { width: 2px; height: 8px; background: var(--nt-line); border-radius: 1px; }
.mc-bar i.ok { background: #3fbf85; }
.mc-bar i.bad { background: #d08a3c; }
.mc-foot { margin-top: 8px; text-align: right; }

/* 使用日志：仿站点日志页，筛选条 + 统计条 + 全宽明细表 */
.logs { width: 100%; }
.logs-head > .row { padding: 10px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 10px; }

.logs-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 8px;
  background: rgba(255,255,255,.02);
}
.lt-field { display: inline-flex; align-items: center; gap: 8px; min-width: 200px; height: 32px; padding: 0 10px;
  border: 1px solid var(--nt-line); border-radius: 9px; color: var(--nt-ink); font-size: 11.5px; }
.lt-ico { color: var(--nt-muted); }
.lt-input { height: 32px; flex: 1 1 160px; min-width: 120px; padding: 0 10px;
  border: 1px solid var(--nt-line); border-radius: 9px; background: rgba(0,0,0,.2);
  color: var(--nt-ink); font-size: 11.5px; }
.lt-input::placeholder { color: var(--nt-faint); }
.lt-select { height: 32px; flex: 0 1 150px; padding: 0 8px;
  border: 1px solid var(--nt-line); border-radius: 9px; background: #1c2027;
  color: var(--nt-ink); font-size: 11.5px; }
.lt-btn { height: 32px; padding: 0 11px; border: 1px solid var(--nt-line); border-radius: 9px;
  background: transparent; color: var(--nt-ink); font-size: 11.5px; white-space: nowrap; }
.lt-btn:hover { border-color: var(--nt-accent); }
.lt-btn.primary { background: var(--nt-accent); border-color: var(--nt-accent); color: #fff; }

.logs-statbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 10px; }
.ls-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.ls-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border: 1px solid var(--nt-line); border-radius: 999px; font-size: 10.5px; color: var(--nt-muted); }
.ls-chip b { color: var(--nt-ink); font-family: var(--nt-code); font-variant-numeric: tabular-nums; }
.ls-dot { width: 2px; height: 12px; border-radius: 1px; display: inline-block; }
.ls-dot.blue { background: #5b8def; }
.ls-dot.red { background: #d05a6a; }
.ls-actions { display: flex; align-items: center; gap: 6px; }

.logs-table-wrap { width: 100%; border: 1px solid var(--nt-line); border-radius: 12px; overflow: hidden; }
.logs-table { width: 100%; }
.lt-row { display: grid; grid-template-columns: 90px 90px minmax(140px, 1.6fr) 70px 100px 110px 100px 80px 70px;
  gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--nt-line); font-size: 11px; }
.lt-row:last-child { border-bottom: 0; }
.lt-row.head { color: var(--nt-muted); font-size: 10.5px; background: rgba(255,255,255,.02); }
.lt-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nt-ink); }
.lt-row .num { text-align: right; font-family: var(--nt-code); font-variant-numeric: tabular-nums; color: var(--nt-muted); }
.lt-row > span:not(.who):not(.num) { color: var(--nt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-empty { padding: 26px; text-align: center; color: var(--nt-muted); font-size: 11.5px; }

.logs-dist { padding: 10px 12px; border: 1px solid var(--nt-line); border-radius: 12px; margin-bottom: 10px; }
.dist-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 110px; gap: 8px; align-items: center; margin: 8px 0; font-size: 10.5px; }
.dist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nt-muted); }
.dist-track { height: 8px; background: rgba(255,255,255,.05); border-radius: 5px; overflow: hidden; }
.dist-track i { display: block; height: 100%; border-radius: 5px; }
.dist-val { text-align: right; font-family: var(--nt-code); color: var(--nt-muted); font-variant-numeric: tabular-nums; }
.logs > .note { margin: 8px 2px 0; }

@media (max-width: 900px) {
  /* 窗口宽度固定，筛选栏与卡片区始终并排；左栏自己滚，不切单列 */
  .lt-row { grid-template-columns: 80px minmax(120px, 1.5fr) 90px 90px 60px; }
  .lt-row > span:nth-child(2), .lt-row > span:nth-child(4), .lt-row > span:nth-child(6), .lt-row > span:nth-child(8) { display: none; }
}
/* ---------- 侧栏可折叠小节（照上游定价页的折叠分组） ---------- */
.market-aside .aside-sec { border-top: 1px solid var(--nt-line); }
.market-aside .aside-sec:first-of-type { border-top: 0; }
.aside-sec-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 2px; border: 0; background: transparent; color: var(--nt-ink);
  font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; text-align: left;
}
.aside-sec-head:hover .aside-sec-title { color: var(--nt-accent); }
.aside-sec-head:focus-visible { outline: 2px solid var(--nt-accent); outline-offset: 2px; border-radius: 6px; }
.aside-sec-title { flex: 1 1 auto; }
.aside-sec-badge {
  flex: none; min-width: 16px; padding: 0 5px; border-radius: 999px;
  background: var(--nt-accent-soft); color: var(--nt-accent);
  font-family: var(--nt-code); font-size: 9.5px; line-height: 15px; text-align: center;
}
/* 展开朝上、收起朝右：和上游定价页的折叠箭头一致 */
.aside-sec-chev { flex: none; color: var(--nt-faint); font-size: 12px; transition: transform .16s ease; transform: rotate(180deg); }
.aside-sec.closed .aside-sec-chev { transform: none; }
.aside-sec.closed .aside-sec-body { display: none; }
.aside-sec-body { padding: 0 0 10px; }
.market-aside .aside-active { color: var(--nt-accent); }

/* ---------- 模型卡片：向上游定价页的卡片层次靠拢 ---------- */
.mc {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  transition: border-color .14s, background .14s, opacity .14s, transform .14s, box-shadow .14s;
}
.mc:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.mc.on { box-shadow: 0 0 0 1px var(--nt-accent) inset, 0 8px 22px rgba(0,0,0,.22); }
.mc-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.mc-vendor { font-size: 10.5px; letter-spacing: .02em; }
.mc-desc {
  margin: 6px 0 8px; font-size: 11.5px; line-height: 1.55; color: var(--nt-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-billing {
  align-self: flex-start; margin-bottom: 6px;
  border-radius: 6px; letter-spacing: .02em;
}
.mc-prices > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 3px 0; border-bottom: 1px dashed rgba(127,127,127,.16);
}
.mc-prices > div:last-child { border-bottom: 0; }
.mc-prices > div > span { color: var(--nt-muted); font-size: 10.5px; }
.mc-prices > div > b { font-family: var(--nt-code); font-size: 11.5px; font-weight: 600; color: var(--nt-ink); }
.mc-line { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; min-width: 0; }
.mc-line > .k { flex: none; width: 26px; color: var(--nt-faint); font-size: 10px; line-height: 18px; }
.mc-ends { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.mc-end {
  padding: 1px 6px; border: 1px solid var(--nt-line); border-radius: 6px;
  font-family: var(--nt-code); font-size: 9.5px; line-height: 15px; color: var(--nt-muted);
}
.mc-stats {
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--nt-line);
  gap: 10px; font-size: 10px;
}
.mc-stats .v { font-family: var(--nt-code); color: var(--nt-ink); }
.mc-foot { margin-top: 8px; display: flex; justify-content: flex-end; }
.mc-foot .link { font-size: 10.5px; }

@media (prefers-reduced-motion: reduce) {
  .mc, .aside-sec-chev { transition: none; }
  .mc:hover { transform: none; }
}

.mc-vicon-img { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); }
.mc-vicon-img img { border-radius: 5px; object-fit: contain; }

/* ---------- 使用日志（对齐原站通用日志的筛选条 + 统计条 + 明细） ---------- */
.logs-title { margin: 16px 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.lg-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px; border: 1px solid var(--nt-line); border-radius: 12px;
  background: rgba(255,255,255,.02);
}
.lg-range { position: relative; flex: 1 1 340px; min-width: 240px; }
.lg-range-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px;
  border: 1px solid var(--nt-line); border-radius: 9px; background: rgba(0,0,0,.22);
  color: var(--nt-ink); font-size: 11.5px; text-align: left; cursor: pointer;
}
.lg-range-btn:hover, .lg-range-btn.open { border-color: var(--nt-accent); }
.lg-range-btn:focus-visible { outline: 2px solid var(--nt-accent); outline-offset: 2px; }
.lg-ico { color: var(--nt-faint); font-size: 11px; }
.lg-range-text { font-family: var(--nt-code); color: var(--nt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-cal {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 340px;
  padding: 10px; border: 1px solid var(--nt-line); border-radius: 12px;
  background: var(--magpie-bg, #16181d); box-shadow: 0 16px 40px rgba(0,0,0,.42);
}
.lg-cal-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lg-cal-presets button {
  height: 26px; padding: 0 9px; border: 1px solid var(--nt-line); border-radius: 999px;
  background: transparent; color: var(--nt-muted); font-size: 11px; cursor: pointer;
}
.lg-cal-presets button:hover { color: var(--nt-ink); border-color: var(--nt-accent); }
.lg-cal-fields { display: grid; gap: 8px; }
.lg-cal-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--nt-faint); }
.lg-cal-fields input {
  height: 30px; padding: 0 8px; border: 1px solid var(--nt-line); border-radius: 8px;
  background: rgba(0,0,0,.28); color: var(--nt-ink); font-size: 11.5px; color-scheme: dark;
}
.lg-cal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.lg-cal-actions .ghost, .lg-cal-actions .primary {
  height: 28px; padding: 0 12px; border-radius: 8px; font-size: 11.5px; cursor: pointer;
  border: 1px solid var(--nt-line); background: transparent; color: var(--nt-muted);
}
.lg-cal-actions .primary { border-color: var(--nt-accent); background: var(--nt-accent); color: #fff; }
.lg-input, .lg-select {
  height: 32px; padding: 0 10px; border: 1px solid var(--nt-line); border-radius: 9px;
  background: rgba(0,0,0,.22); color: var(--nt-ink); font-size: 11.5px;
}
.lg-input { flex: 1 1 180px; min-width: 140px; }
.lg-select { min-width: 120px; }
.lg-input:focus, .lg-select:focus { outline: 1px solid var(--nt-accent); }
.lg-btn {
  height: 32px; padding: 0 12px; border: 1px solid var(--nt-line); border-radius: 9px;
  background: transparent; color: var(--nt-muted); font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.lg-btn:hover { color: var(--nt-ink); border-color: var(--nt-accent); }
.lg-btn.primary { border-color: var(--nt-accent); background: var(--nt-accent); color: #fff; }
.lg-btn.icon { padding: 0 10px; }
.lg-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.lg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--nt-line); border-radius: 999px; font-size: 11px; color: var(--nt-muted); }
.lg-chip b { color: var(--nt-ink); font-family: var(--nt-code); font-weight: 600; }
.lg-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.lg-dot.blue { background: #5b8def; } .lg-dot.red { background: #e06b7a; }
.lg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-table-wrap { border: 1px solid var(--nt-line); border-radius: 12px; overflow: visible; }
.lg-table { display: flex; flex-direction: column; }
.lg-row { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr .6fr .8fr 1fr .8fr .7fr .7fr; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--nt-line); font-size: 11.5px; }
.lg-row:first-child { border-top: 0; }
.lg-row.head { background: rgba(255,255,255,.03); color: var(--nt-faint); font-size: 10.5px; letter-spacing: .02em; }
.lg-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nt-ink); }
.lg-row .num { font-family: var(--nt-code); text-align: right; }
.lg-empty { padding: 20px 12px; text-align: center; color: var(--nt-faint); font-size: 11.5px; }
.lg-dist { margin: 8px 0 12px; display: grid; gap: 6px; }
.lg-dist-row { display: grid; grid-template-columns: 160px 1fr 120px; gap: 10px; align-items: center; font-size: 11px; }
.lg-dist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nt-muted); }
.lg-dist-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.lg-dist-track i { display: block; height: 100%; }
.lg-dist-val { text-align: right; font-family: var(--nt-code); color: var(--nt-muted); }
@media (max-width: 720px) {
  .lg-row { grid-template-columns: 1fr 1fr 1.4fr .6fr .8fr; }
  .lg-row > span:nth-child(n+6) { display: none; }
}

/* 逐条日志单元格 */
.lg-cell-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-tag { display: inline-block; font-size: 9.5px; padding: 0 5px; border-radius: 5px; width: fit-content; }
.lg-tag.ok { color: #4cc38a; background: rgba(76,195,138,.12); }
.lg-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 1px 7px; border: 1px solid var(--nt-line); border-radius: 999px; color: var(--nt-ink); width: fit-content; }
.lg-group { font-size: 9.5px; color: #4cc38a; }
.lg-model { font-size: 11.5px; color: var(--nt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-effort { font-size: 10px; color: #e0b34a; }
.lg-sub { font-size: 9.5px; color: var(--nt-faint); font-family: var(--nt-code); }
.lg-time b { font-family: var(--nt-code); color: var(--nt-ink); font-weight: 600; }
.lg-time span { font-size: 10px; color: var(--nt-muted); margin-right: 6px; }
.lg-detail { font-size: 10px; color: var(--nt-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 日志按钮/弹层的过渡，和上游一致：轻、快、只动 transform/opacity/颜色 */
.lg-btn, .lg-cal-presets button, .lg-range-btn, .lg-select, .lg-input, .lg-chip {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.lg-btn:hover, .lg-cal-presets button:hover { background: rgba(255,255,255,.05); }
.lg-btn:active, .lg-cal-presets button:active { transform: scale(.97); }
.lg-btn.primary:hover { filter: brightness(1.06); }
.lg-btn:focus-visible, .lg-cal-presets button:focus-visible, .lg-range-btn:focus-visible {
  outline: 2px solid var(--nt-accent); outline-offset: 2px;
}
.lg-cal { animation: lgCalIn .16s ease both; transform-origin: top left; }
@keyframes lgCalIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.lg-range-btn.open { background: rgba(255,255,255,.04); }
.lg-btn .spin { display: inline-block; }
.lg-btn.refreshing .spin { animation: lgSpin .9s linear infinite; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg-select { appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--nt-faint) 50%), linear-gradient(135deg, var(--nt-faint) 50%, transparent 50%); background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
@media (prefers-reduced-motion: reduce) {
  .lg-cal { animation: none; }
  .lg-btn, .lg-cal-presets button, .lg-range-btn, .lg-select, .lg-input, .lg-chip { transition: none; }
  .lg-btn.refreshing .spin { animation: none; }
}

.lg-btn.on { color: var(--nt-ink); border-color: var(--nt-accent); background: var(--nt-accent-soft); }
.lg-row:not(.head):hover { background: rgba(255,255,255,.025); }
.lg-row { transition: background-color .12s ease; }
@media (prefers-reduced-motion: reduce) { .lg-row { transition: none; } }

/* 对齐原站：动作区按钮是文字按钮，只有 10s 描边、搜索是蓝色实心 */
.lg-btn {
  border-color: transparent; background: transparent; color: var(--nt-muted);
  padding: 0 8px; border-radius: 8px;
}
.lg-btn:hover { background: rgba(255,255,255,.06); color: var(--nt-ink); border-color: transparent; }
.lg-btn.bordered {
  border-color: var(--nt-line); background: transparent; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center;
}
.lg-btn.bordered:hover { border-color: var(--nt-accent); }
.lg-btn.primary { background: var(--nt-accent); border-color: var(--nt-accent); color: #fff; padding: 0 14px; }
.lg-btn.primary:hover { background: color-mix(in oklab, var(--nt-accent) 88%, white); }
.lg-btn.icon { padding: 0 8px; }
/* 筛选条更紧凑：同一行、同高、间隔 8，展开靠右 */
.lg-bar { gap: 8px; padding: 8px; }
.lg-range-btn, .lg-input, .lg-select { height: 34px; }
.lg-bar .lg-btn { height: 34px; }
.lg-bar .lg-btn[title="展开或收起分布"] { margin-left: auto; }
/* 统计条里的胶囊更轻 */
.lg-chip { border-color: transparent; background: rgba(255,255,255,.04); height: 24px; padding: 0 9px; }

/* 自定义下拉/菜单（对齐原站） */
.lg-menu-wrap { position: relative; display: inline-flex; }
.lg-trigger { display:inline-flex; align-items:center; gap:8px; height:34px; min-width:140px; padding:0 12px; border:1px solid var(--nt-line); border-radius:9px; background:rgba(0,0,0,.22); color:var(--nt-ink); font-size:11.5px; cursor:pointer; }
.lg-trigger:hover, .lg-trigger.open { border-color: var(--nt-accent); }
.lg-trigger-text { flex:1 1 auto; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lg-caret { flex:none; color:var(--nt-faint); font-size:10px; }
.lg-menu { position:absolute; z-index:40; top:calc(100% + 6px); left:0; min-width:220px; max-width:320px; padding:6px; border:1px solid var(--nt-line); border-radius:12px; background:#1b1d22; box-shadow:0 18px 44px rgba(0,0,0,.5); animation:lgCalIn .14s ease both; }
.lg-menu.small { min-width:150px; }
.lg-menu-title { padding:6px 10px; font-size:11px; color:var(--nt-faint); }
.lg-menu-list { max-height:300px; overflow:auto; }
.lg-menu-item { display:flex; align-items:center; gap:8px; width:100%; padding:8px 10px; border:0; border-radius:8px; background:transparent; color:var(--nt-ink); font-size:12px; text-align:left; cursor:pointer; }
.lg-menu-item:hover, .lg-menu-item.sel { background:rgba(91,141,239,.15); }
.lg-menu-label { flex:1 1 auto; }
.lg-menu-badge { flex:none; font-size:9.5px; color:var(--nt-faint); background:rgba(255,255,255,.07); border-radius:5px; padding:0 6px; }
.lg-check { flex:none; color:var(--nt-accent); font-size:12px; }
.lg-table.hide-c2 .lg-row > :nth-child(2), .lg-table.hide-c3 .lg-row > :nth-child(3),
.lg-table.hide-c4 .lg-row > :nth-child(4), .lg-table.hide-c5 .lg-row > :nth-child(5),
.lg-table.hide-c6 .lg-row > :nth-child(6), .lg-table.hide-c7 .lg-row > :nth-child(7),
.lg-table.hide-c8 .lg-row > :nth-child(8), .lg-table.hide-c9 .lg-row > :nth-child(9) { display:none; }
.lg-btn.searching { animation: lgPulse .5s ease; }
@keyframes lgPulse { 0% { box-shadow:0 0 0 0 rgba(91,141,239,.5); } 100% { box-shadow:0 0 0 10px rgba(91,141,239,0); } }

/* 复刻原站控件形状：全部胶囊、上下双箭头 */
.lg-trigger, .lg-btn.bordered, .lg-range-btn, .lg-input {
  border-radius: 999px;
}
.lg-trigger { height: 36px; padding: 0 14px; gap: 8px; font-size: 12px; }
.lg-btn { border-radius: 999px; }
.lg-btn.bordered { height: 36px; padding: 0 14px; }
.lg-btn.outline { border: 1px solid var(--nt-line); background: transparent; padding: 0 14px; height: 36px; }
.lg-btn.outline:hover { border-color: var(--nt-accent); color: var(--nt-ink); }
.lg-btn.primary { height: 36px; }
.lg-range-btn { height: 36px; }
.lg-chev { display: inline-flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; flex: none; }
.lg-chev i { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.lg-chev i:first-child { border-bottom: 4.5px solid var(--nt-faint); }
.lg-chev i:last-child { border-top: 4.5px solid var(--nt-faint); }
.lg-trigger:hover .lg-chev i:first-child, .lg-trigger.open .lg-chev i:first-child { border-bottom-color: var(--nt-ink); }
.lg-trigger:hover .lg-chev i:last-child, .lg-trigger.open .lg-chev i:last-child { border-top-color: var(--nt-ink); }

/* 全胶囊：搜索框、展开；表格行按原站复刻 */
.lg-input { border-radius: 999px; padding: 0 14px; height: 36px; }
.lg-row { grid-template-columns: 1.3fr 2.0fr 1.55fr .75fr 1.15fr 1.0fr 1.0fr 1.05fr .9fr; padding: 16px 14px; align-items: start; }
.lg-row.head { padding: 12px 14px; color: var(--nt-muted); background: transparent; border-bottom: 1px solid var(--nt-line); }
.lg-strong { font-weight: 600; color: var(--nt-ink); }
.lg-pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%;
  padding: 2px 9px; border: 1px solid var(--nt-line); border-radius: 999px;
  font-size: 11.5px; color: var(--nt-ink); background: rgba(255,255,255,.02); }
.lg-model-pill { border-color: rgba(127,127,127,.28); }
.lg-cost { font-family: var(--nt-code); }
.lg-effort { font-size: 10.5px; color: #e0a44a; }
.lg-bar-green { display: block; font-size: 10.5px; color: #4cc38a; position: relative; padding-left: 8px; }
.lg-bar-green::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; border-radius: 2px; background: #4cc38a; }
.lg-bar-green b { color: #4cc38a; font-family: var(--nt-code); }
.lg-detail { font-size: 11px; color: var(--nt-muted); }

.lg-expand { gap: 6px; }

/* 靠右的菜单向左弹，避免被视口裁掉 */
.lg-menu-wrap.right .lg-menu { left: auto; right: 0; }
.lg-menu.right { left: auto; right: 0; }
/* 双箭头：固定宽度、与文字留出间距、垂直居中，别再挤成一坨 */
.lg-chev { margin-left: 6px; gap: 4px; width: 9px; }
.lg-chev i { border-left-width: 4px; border-right-width: 4px; }
.lg-chev i:first-child { border-bottom-width: 5px; }
.lg-chev i:last-child { border-top-width: 5px; }
.lg-btn .lg-chev, .lg-trigger .lg-chev { align-self: center; }

/* 压扁控件：整体高度对齐上游（按钮/输入/触发器/胶囊都降高） */
.logs .lg-bar { padding: 8px; gap: 8px; }
.logs .lg-btn,
.logs .lg-btn.bordered,
.logs .lg-btn.outline,
.logs .lg-btn.primary,
.logs .lg-trigger,
.logs .lg-input,
.logs .lg-range-btn { height: 30px; }
.logs .lg-btn { padding: 0 10px; font-size: 11.5px; }
.logs .lg-btn.primary { padding: 0 14px; }
.logs .lg-btn.outline { padding: 0 12px; }
.logs .lg-trigger { min-width: 116px; padding: 0 12px; font-size: 11.5px; }
.logs .lg-input { padding: 0 12px; }
.logs .lg-range-btn { padding: 0 12px; font-size: 11.5px; }
.logs .lg-chip { height: 22px; padding: 0 9px; font-size: 10.5px; border-radius: 999px; }
.logs .lg-row { padding: 12px 14px; }
.logs .lg-row.head { padding: 9px 14px; font-size: 10px; }
.logs-title { font-size: 16px; margin: 12px 0 8px; }
.logs .lg-chev { margin-left: 4px; }

/* 列对齐：所有单元格从轨道左端起排，数值列不右浮动，避免与表头错位 */
.logs .lg-row > span { min-width: 0; overflow: hidden; }
.logs .lg-row .num { text-align: left; }
.logs .lg-row .lg-cell-stack { align-items: flex-start; }

.logs .lg-bar-more { margin-top: 8px; }
.logs .lg-bar-more .lg-input { flex: 1 1 0; min-width: 0; }

/* 箭头统一：三角形 5×6，双箭头垂直居中不偏下 */
.logs .lg-btn { line-height: 1; }
.logs .lg-chev { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; line-height: 0; gap: 3px; margin-left: 6px; align-self: center; }
.logs .lg-chev i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.logs .lg-chev i:first-child { border-bottom: 6px solid var(--nt-faint); }
.logs .lg-chev i:last-child { border-top: 6px solid var(--nt-faint); }
.logs .lg-chev.single i { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--nt-faint); border-bottom: 0; transition: transform .15s ease; }
.logs .lg-expand.open .lg-chev.single i { transform: rotate(180deg); }
.logs .lg-btn:hover .lg-chev i, .logs .lg-btn[aria-expanded="true"] .lg-chev i { border-top-color: var(--nt-ink); border-bottom-color: var(--nt-ink); }

.logs .lg-gb { margin-top: 2px; }
.logs .lg-gb .gb-tag { font-size: 9px; padding: 0 5px; }
.logs .lg-gb .gb-rest { font-size: 10px; color: var(--nt-ink); }

/* 查看/展开这类带箭头的胶囊：文字与箭头同一水平中线 */
.logs .lg-btn.outline, .logs .lg-btn.lg-expand {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; padding-top: 0; padding-bottom: 0;
}
.logs .lg-btn.outline > span:first-child { display: inline-block; line-height: 1; }
.logs .lg-chev { height: auto; }

/* 图标按钮：32px 圆形，激活带蓝色圆环（对齐上游眼睛按钮） */
.logs .lg-btn.icon-btn {
  width: 32px; height: 32px; padding: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; color: var(--nt-muted); background: transparent;
}
.logs .lg-btn.icon-btn:hover { color: var(--nt-ink); background: rgba(255,255,255,.06); }
.logs .lg-btn.icon-btn.on { color: var(--nt-ink); }
/* 控件整体回到 32px，不再压得过小 */
.logs .lg-btn, .logs .lg-btn.bordered, .logs .lg-btn.outline, .logs .lg-btn.primary,
.logs .lg-trigger, .logs .lg-input, .logs .lg-range-btn { height: 32px; }
/* 查看/展开：文字与箭头严格同高居中 */
.logs .lg-btn.outline, .logs .lg-btn.lg-expand { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; line-height: 1; }
.logs .lg-btn.outline > span:first-child, .logs .lg-btn.lg-expand > span:first-child { line-height: 32px; display: inline-block; }
.logs .lg-chev { margin-left: 0; height: 32px; justify-content: center; }
.logs .lg-menu-wrap { align-items: center; }

.logs .lg-pill { gap: 6px; }
.logs .lg-mico { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; flex: none; }
.logs .lg-mico-fb { display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; background: rgba(127,127,127,.25); color: var(--nt-ink); }
.logs .lg-model { display: inline-flex; align-items: center; gap: 6px; }

.logs .lg-row .num { font-variant-numeric: tabular-nums; }

/* 对齐上游：行更紧凑，各列首行共享同一基线，胶囊压低 */
.logs .lg-row {
  grid-template-columns: 1.45fr 1.25fr 1.85fr .7fr .95fr .95fr .9fr 1.05fr 1.05fr;
  padding: 10px 14px;
  align-items: start;
  column-gap: 12px;
  font-size: 11.5px;
  line-height: 20px;
}
.logs .lg-row.head { padding: 8px 14px; line-height: 20px; font-size: 10px; }
.logs .lg-cell-stack { gap: 2px; }
.logs .lg-cell-stack > span { line-height: 20px; }
.logs .lg-strong, .logs .lg-row .num { line-height: 20px; }
.logs .lg-pill { padding: 0 8px; height: 20px; line-height: 18px; font-size: 11px; border-radius: 999px; gap: 5px; }
.logs .lg-pill .lg-mico { width: 13px; height: 13px; }
.logs .lg-pill svg { width: 12px; height: 12px; }
.logs .lg-gb { margin-top: 0; }
.logs .lg-gb .gb-tag { font-size: 8.5px; line-height: 14px; padding: 0 4px; }
.logs .lg-gb .gb-rest { font-size: 9.5px; }
.logs .lg-effort { font-size: 10px; line-height: 16px; }
.logs .lg-sub { font-size: 9.5px; line-height: 16px; }
.logs .lg-tag { line-height: 16px; }
.logs .lg-bar-green { line-height: 18px; font-size: 10px; }
.logs .lg-model { line-height: 20px; }
.logs .lg-detail { line-height: 20px; font-size: 10.5px; }

.logs .spin { display: inline-flex; align-items: center; justify-content: center; }
.logs .spin.spinning { animation: lgSpin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .logs .spin.spinning { animation: none; } }

/* 最终对齐：列序 时间（含消耗+令牌）→ 分组 → 模型 → 费用 → 请求体大小 → 流 → Token → 耗时 → 详情。
   列宽用比例分配：容器变宽时各列等比铺开、右侧不留空白，列间距保持一致的呼吸感。
   每列都套 minmax(0, …)：否则 fr 的下限是内容最小宽度，nowrap 的模型名会把列撑开，
   整个行溢出容器被硬裁，右侧连省略号都看不到。 */
.logs .lg-row {
  grid-template-columns:
    minmax(0, 1.3fr) minmax(0, 1.55fr) minmax(0, 2.4fr) minmax(0, .85fr) minmax(0, .85fr)
    minmax(0, .65fr) minmax(0, 1.05fr) minmax(0, .9fr) minmax(0, 1.5fr);
  padding: 8px 14px;
  column-gap: 16px;
  align-items: start;
  line-height: 18px;
  font-size: 11px;
}
.logs .lg-row.head { padding: 7px 14px; line-height: 18px; font-size: 9.5px; letter-spacing: 0; }
.logs .lg-cell-stack { gap: 1px; min-height: 36px; justify-content: flex-start; }
.logs .lg-cell-stack > span { line-height: 18px; }
.logs .lg-strong, .logs .lg-row .num, .logs .lg-model, .logs .lg-detail { line-height: 18px; font-size: 11px; }
.logs .lg-pill {
  height: 18px; line-height: 16px; padding: 0 7px; gap: 4px;
  font-size: 10.5px; border-radius: 999px;
}
.logs .lg-pill .lg-mico { width: 12px; height: 12px; }
.logs .lg-pill svg { width: 11px; height: 11px; }
.logs .lg-tag { line-height: 14px; font-size: 9px; padding: 0 4px; border-radius: 4px; }
.logs .lg-effort { line-height: 15px; font-size: 9.5px; }
.logs .lg-sub { line-height: 14px; font-size: 9px; }
.logs .lg-gb { margin-top: 0; }
.logs .lg-gb .gb-tag { font-size: 8px; line-height: 13px; padding: 0 3px; }
.logs .lg-gb .gb-rest { font-size: 9px; line-height: 13px; }
.logs .lg-bar-green { line-height: 16px; font-size: 9.5px; }
.logs .lg-bar-green b { font-size: 9.5px; }

/* 整页大容器 + 底部分页 */
.logs .logs-panel {
  border: 1px solid var(--nt-line); border-radius: 16px;
  background: rgba(255,255,255,.015); padding: 12px;
}
.logs .lg-pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--nt-line);
  font-size: 11px; color: var(--nt-muted);
}
.logs .lg-total { margin-right: auto; }
.logs .lg-pagesize-label { color: var(--nt-faint); }
.logs .lg-pagesize { min-width: 84px; height: 30px; }
.logs .lg-page-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px;
  padding: 0 8px; border-radius: 999px; background: var(--nt-accent); color: #fff; font-family: var(--nt-code); font-size: 11px;
}
.logs .lg-btn.icon-btn[disabled] { opacity: .35; cursor: default; }
.logs .lg-menu.up { top: auto; bottom: calc(100% + 6px); }

/* 所有列的首行值统一装进 18px 行盒，数字、破折号、胶囊文字共用中线 */
.logs .lg-row > .lg-strong,
.logs .lg-row > .num,
.logs .lg-row > .lg-detail {
  display: inline-flex; align-items: center; height: 18px; line-height: 18px;
}
.logs .lg-cell-stack > span:first-child { display: inline-flex; align-items: center; height: 18px; line-height: 18px; }
.logs .lg-cell-stack > span:first-child.lg-pill { height: 18px; }
.logs .lg-cell-stack { align-content: start; }
.logs .lg-row { align-items: start; }

/* 筛选卡片：标题 + 说明 + 右上角带旋转图标的重置，与上游一致 */
.market-aside .ma-head { display: flex; align-items: flex-start; gap: 10px; }
.market-aside .ma-head-main { flex: 1 1 auto; min-width: 0; }
.market-aside .ma-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--nt-ink); line-height: 20px; }
.market-aside .ma-desc { margin: 2px 0 0; font-size: 11.5px; line-height: 17px; color: var(--nt-muted); }
.market-aside .ma-reset {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; color: var(--nt-muted);
  font-size: 12px; padding: 2px 4px; border-radius: 8px; cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.market-aside .ma-reset:hover { color: var(--nt-ink); background: rgba(255,255,255,.06); }
.market-aside .ma-reset-icon { display: inline-flex; width: 14px; height: 14px; align-items: center; justify-content: center; }
.market-aside .ma-reset-icon i {
  width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50%;
  border-top-color: transparent; border-right-color: transparent; display: block;
  transition: transform .3s ease;
}
.market-aside .ma-reset:hover .ma-reset-icon i { transform: rotate(-140deg); }
.market-aside .ma-badge {
  display: inline-flex; align-items: center; margin: 8px 0 0; padding: 1px 9px;
  border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--nt-line);
  font-size: 10.5px; color: var(--nt-ink);
}
@media (prefers-reduced-motion: reduce) { .market-aside .ma-reset, .market-aside .ma-reset-icon i { transition: none; } }

/* 空值横线：几何中心与数字中线对齐，粗细与上游一致 */
.logs .lg-dash { display: inline-flex; align-items: center; justify-content: flex-start; height: 18px; line-height: 18px; }
.logs .lg-dash > i { display: block; width: 9px; height: 1.5px; border-radius: 1px; background: currentColor; opacity: .72; }
.logs .lg-dash.sm { height: 14px; }
.logs .lg-dash.sm > i { width: 8px; height: 1.25px; }
.logs .lg-dash.in { height: auto; }
.logs .lg-dash.in > i { width: 8px; height: 1.25px; }

/* 重置图标：SVG，hover 时整体回转 */
.market-aside .ma-reset-svg { display: block; transition: transform .35s ease; }
.market-aside .ma-reset:hover .ma-reset-svg { transform: rotate(-180deg); }
/* 说明文字回到正常字号与行高，不再被挤窄 */
.market-aside .ma-desc { margin: 4px 0 0; font-size: 12px; line-height: 18px; color: var(--nt-muted); max-width: 22em; }
.market-aside .ma-head { gap: 8px; }
.market-aside .ma-reset { padding: 2px 6px; }
/* 折叠箭头：细 chevron，不用字符 */
.market-aside .aside-sec-chev { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; }
.market-aside .aside-sec-chev::before {
  content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--nt-muted); border-bottom: 1.5px solid var(--nt-muted);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -3px;
}
.market-aside .aside-sec.open .aside-sec-chev::before, .market-aside .aside-sec:not(.closed) .aside-sec-chev::before { transform: rotate(-135deg); margin-top: 3px; }
/* 分组胶囊收窄，不再肥大 */
.market-aside .aside-sec-body .chip, .market-aside .chip {
  padding: 2px 8px; font-size: 10.5px; line-height: 16px; gap: 4px; border-radius: 999px;
}
.market-aside .chip .gb-tag { font-size: 8.5px; padding: 0 3px; line-height: 12px; }
.market-aside .chip .gb-rest { font-size: 10px; }
.market-aside .chip .gb-mul { font-size: 9.5px; }

/* 接管折叠箭头：隐藏原字符，只用 CSS chevron；旧 rotate 一并作废 */
.market-aside .aside-sec-chev { font-size: 0; color: transparent; transform: none !important; overflow: hidden; }
.market-aside .aside-sec-chev::before { font-size: 0; }

/* 内容块整体在行内垂直居中：单行值（Token / 请求体大小 / 详情）与两行块共用同一视觉中心。
   这里只改对齐与内边距，列宽以 723 行那份为准。 */
.logs .lg-row { align-items: center; padding: 6px 14px; }
.logs .lg-cell-stack { min-height: 0; justify-content: center; }
.logs .lg-cell-stack > span { line-height: 18px; }
/* 横线严格居中在 18px 行盒里 */
.logs .lg-dash { height: 18px; align-items: center; }
.logs .lg-dash > i { margin: 0; }
/* 单行值也走同一行盒 */
.logs .lg-row > .lg-strong, .logs .lg-row > .num, .logs .lg-row > .lg-detail { height: 18px; display: inline-flex; align-items: center; }

/* 横线精确落在数字墨迹中心（行盒内 10px，而非几何中点 9px） */
.logs .lg-dash > i { margin-top: 1px; }
.logs .lg-dash.in > i { margin-top: 0; }

/* 复制按钮：方形描边图标，hover 提亮 */
.mc .mc-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border-radius: 8px;
  border: 1px solid var(--nt-line); background: transparent; color: var(--nt-muted);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.mc .mc-copy:hover { color: var(--nt-ink); border-color: var(--nt-accent); background: rgba(255,255,255,.05); }
/* 详情与 状态/延迟/吞吐 同排：右对齐、字号略大、白色字 + 箭头 */
.mc .mc-stats { align-items: center; }
.mc .mc-more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 12.5px; font-weight: 600; color: var(--nt-ink); text-decoration: none;
  padding: 2px 4px; border-radius: 6px; transition: color .15s ease, background-color .15s ease;
}
.mc .mc-more:hover { color: #fff; background: rgba(255,255,255,.06); }
.mc .mc-more-arrow { font-size: 13px; color: var(--nt-muted); }
.mc .mc-more:hover .mc-more-arrow { color: var(--nt-ink); }

/* 两行块：内部两行 18px + 1px 间距，整体 37px，居中后与单行值同处行中线 */
.logs .lg-cell-stack { min-height: 0; gap: 1px; justify-content: center; }
.logs .lg-dash { height: 18px; align-items: center; }
.logs .lg-dash > i { margin-top: 1px; }

/* 横线再下移 0.5px，与数字墨迹中心完全重合（实测 delta=-0.5） */
.logs .lg-dash > i { margin-top: 1.5px; }

/* 推荐计划卡复制按钮：沿用模型卡片同款方形图标按钮 */
.rf .rf-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border-radius: 8px; flex: none;
  border: 1px solid var(--nt-line); background: transparent; color: var(--nt-muted);
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.rf .rf-copy:hover { color: var(--nt-ink); border-color: var(--nt-accent); background: rgba(255,255,255,.05); }
.rf .rf-copy svg { display: block; }
/* 订单历史：蓝色文字 + 细箭头，与上游一致 */
.tp-history {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 12px; color: #6ea8ff; text-decoration: none;
  padding: 3px 6px; border-radius: 7px;
  transition: color .15s ease, background-color .15s ease;
}
.tp-history:hover { color: #9cc2ff; background: rgba(110,168,255,.12); }
.tp-history svg { display: block; }

/* 流列：蓝色「流」+ 灰色 t/s，和上游一致 */
.logs .lg-flow { color: #4a9eff; line-height: 18px; }
/* 非流式：蓝色改灰，和上游一致 */
.logs .lg-flow.off { color: var(--nt-muted); }
.logs .lg-sub { color: var(--nt-muted); }
/* 模型行 + 映射按钮 */
.logs .lg-model-row { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.logs .lg-map {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px; padding: 0; border-radius: 6px;
  border: 1px solid transparent; background: transparent; color: var(--nt-faint);
  cursor: pointer; transition: color .15s ease, background-color .15s ease;
}
.logs .lg-map:hover, .logs .lg-map.on { color: var(--nt-ink); background: rgba(255,255,255,.08); }
.logs .lg-map svg { display: block; }

/* 分组胶囊再压扁：高度 20px，左右内边距更小，倍率与徽标同步收紧 */
.market-aside .chip,
.market-aside .aside-sec-body .chip {
  height: 20px; min-height: 0; padding: 0 7px; gap: 3px;
  font-size: 10px; line-height: 18px; border-radius: 999px;
}
.market-aside .chip .gb-tag { font-size: 8px; line-height: 12px; padding: 0 3px; border-radius: 3px; }
.market-aside .chip .gb-rest { font-size: 9.5px; line-height: 16px; }
.market-aside .chip .gb-mul { font-size: 9px; line-height: 16px; color: var(--nt-faint); }

/* 分组胶囊压扁：覆盖所有 .market-chip 形态（含 .group-chip / 行内变体） */
.market-aside .market-chip,
.market-aside .market-chip.group-chip,
.market-aside .chips-row .market-chip {
  min-height: 0 !important; height: 20px !important;
  padding: 0 8px !important; gap: 4px !important;
  font-size: 10px !important; line-height: 18px !important;
  border-radius: 999px !important;
}
.market-aside .market-chip .gb { gap: 3px; }
.market-aside .market-chip .gb-tag { font-size: 8px !important; line-height: 12px !important; padding: 0 3px !important; }
.market-aside .market-chip .gb-rest { font-size: 9.5px !important; }
.market-aside .market-chip .ratio { font-size: 9px !important; }
/* 模型卡片里的模型胶囊：压到 22px，别和日志里一样厚 */
.mc .mc-model-pill, .mc .lg-pill { height: 22px; padding: 0 9px; font-size: 11px; }

/* 复制反馈：叠加对勾徽标，图标保持可见 */
.mc .mc-copy, .rf .rf-copy { position: relative; overflow: visible; }
.mc .mc-copy.copied, .rf .rf-copy.copied { color: #4cc38a; border-color: rgba(76,195,138,.6); }
.mc .mc-copy.copyfail, .rf .rf-copy.copyfail { color: #e06b7a; border-color: rgba(224,107,122,.6); }
.copy-badge {
  position: absolute; right: -4px; bottom: -4px;
  min-width: 12px; height: 12px; padding: 0 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #1b1d22; border: 1px solid currentColor;
  font-size: 8px; line-height: 1; color: inherit;
}

/* 折叠标题：不要整行高光块，只在文字变色 */
.market-aside .aside-sec-head { background: transparent !important; border-radius: 0; }
.market-aside .aside-sec-head:hover, .market-aside .aside-sec-head:focus { background: transparent !important; }
.market-aside .aside-sec-head:hover .aside-sec-title { color: var(--nt-ink); }
.market-aside .aside-sec.open .aside-sec-head, .market-aside .aside-sec:not(.closed) .aside-sec-head { background: transparent !important; }
/* 供应商：横向两列排布，收紧高度，窄容器下也不超限 */
.market-aside .market-chips.vendor-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 6px; width: 100%;
}
.market-aside .market-chips.vendor-grid .market-chip {
  width: 100%; min-width: 0; max-width: 100%;
  height: 24px; padding: 0 8px; gap: 5px; font-size: 10px;
  justify-content: flex-start; overflow: hidden;
}
.market-aside .market-chips.vendor-grid .market-chip .label,
.market-aside .market-chips.vendor-grid .market-chip > span:not(.ratio) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.market-aside .market-chips.vendor-grid .vendor-icon { width: 13px; height: 13px; flex: none; }
.market-aside .market-chips.vendor-grid .ratio { font-size: 9px; flex: none; }
@media (max-width: 360px) {
  .market-aside .market-chips.vendor-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 侧栏滚动条：默认隐藏，滚动时才出现（对齐主站） */
.market-aside {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color .25s ease;
}
.market-aside:hover { scrollbar-color: rgba(255,255,255,.18) transparent; }
.market-aside::-webkit-scrollbar { width: 6px; }
.market-aside::-webkit-scrollbar-track { background: transparent; }
.market-aside::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; transition: background-color .25s ease; }
.market-aside:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }
.market-aside::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
/* 滚动条贴到侧栏左侧：留出左侧内边距，把滚动条推过去 */
.market-aside { direction: rtl; }
.market-aside > * { direction: ltr; }

/* 已启用/未启用：胶囊 + 状态圆点（启用绿点、未启用红点），和页头「已连接」同款 */
.mc .mc-flag {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 22px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--nt-line); background: rgba(255,255,255,.03);
  font-size: 10.5px; color: var(--nt-muted);
}
.mc .mc-flag .mc-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor; }
.mc .mc-flag.on { color: #4cc38a; border-color: rgba(76,195,138,.45); background: rgba(76,195,138,.1); }
.mc .mc-flag.on .mc-dot { background: #4cc38a; }
.mc .mc-flag.off { color: #e06b7a; border-color: rgba(224,107,122,.45); background: rgba(224,107,122,.1); }
.mc .mc-flag.off .mc-dot { background: #e06b7a; }

/* 列表模式：整表样式（对齐原站 pricing 列表） */
.model-grid.as-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--nt-line); border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.015);
}
.model-grid.as-list .ml-head,
.model-grid.as-list .ml-row {
  display: grid;
  grid-template-columns: 1.55fr .78fr 1.15fr .72fr 1.05fr .8fr 1.15fr 1.55fr;
  align-items: center; gap: 10px; padding: 10px 14px;
}
.model-grid.as-list .ml-head {
  border-bottom: 1px solid var(--nt-line);
  font-size: 10.5px; color: var(--nt-muted);
}
.model-grid.as-list .ml-row { border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; transition: background-color .12s; }
.model-grid.as-list .ml-row:last-child { border-bottom: 0; }
.model-grid.as-list .ml-row:hover { background: rgba(255,255,255,.035); }
.model-grid.as-list .ml-row.off { opacity: .45; }
.model-grid.as-list .ml-cell { min-width: 0; font-size: 11.5px; overflow: hidden; }
.model-grid.as-list .ml-model { display: inline-flex; align-items: center; gap: 6px; color: var(--nt-ink); }
.model-grid.as-list .ml-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.model-grid.as-list .ml-sort { margin-left: auto; color: var(--nt-faint); font-size: 9px; }
.model-grid.as-list .ml-type { font-size: 11px; }
.model-grid.as-list .ml-type.dyn { color: #e0a44a; }
.model-grid.as-list .ml-type.flat { color: #4a9eff; }
.model-grid.as-list .ml-price { display: grid; grid-template-columns: auto auto; gap: 0 8px; line-height: 16px; }
.model-grid.as-list .ml-p-in, .model-grid.as-list .ml-p-out { font-size: 11px; color: var(--nt-ink); }
.model-grid.as-list .ml-p-unit { grid-column: 1 / -1; font-size: 9.5px; color: var(--nt-faint); }
.model-grid.as-list .ml-cache { font-size: 11px; color: var(--nt-ink); }
.model-grid.as-list .ml-vendor { display: inline-flex; align-items: center; gap: 5px; color: #4a9eff; }
.model-grid.as-list .ml-vicon { width: 13px; height: 13px; object-fit: contain; flex: none; }
.model-grid.as-list .ml-tags, .model-grid.as-list .ml-ends { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.model-grid.as-list .ml-tag { font-size: 9.5px; padding: 0 5px; border-radius: 4px; background: rgba(255,255,255,.07); color: var(--nt-muted); }
.model-grid.as-list .ml-end { font-size: 10px; color: #e0a44a; }
.model-grid.as-list .ml-end:last-of-type { color: #4a9eff; }
.model-grid.as-list .ml-groups { display: inline-flex; align-items: center; gap: 4px; }
.model-grid.as-list .ml-gb { display: inline-flex; min-width: 0; overflow: hidden; }
.model-grid.as-list .ml-more { font-size: 10px; color: var(--nt-muted); flex: none; }

.model-grid.as-list .ml-dash { display: inline-flex; align-items: center; height: 16px; }
.model-grid.as-list .ml-dash > i { display: block; width: 9px; height: 1.5px; border-radius: 1px; background: var(--nt-muted); opacity: .6; }
.model-grid.as-list .ml-vicon-fb { display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; border-radius: 3px; background: rgba(127,127,127,.25); }

/* 端点只占一行：不换行、超长省略 */
.model-grid.as-list .ml-ends {
  display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 8px;
  overflow: hidden; white-space: nowrap;
}
.model-grid.as-list .ml-end { flex: none; max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
/* 分组：单行，胶囊内部截断，组内文字用省略号而不是硬切 */
.model-grid.as-list .ml-groups {
  display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px;
  overflow: hidden; min-width: 0;
}
.model-grid.as-list .ml-gb {
  flex: 0 1 auto; min-width: 0; max-width: 108px;
  overflow: hidden; white-space: nowrap;
}
.model-grid.as-list .ml-gb > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-grid.as-list .ml-gb .gb-tag { flex: none; }
.model-grid.as-list .ml-gb .gb-rest { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-grid.as-list .ml-more { flex: none; font-size: 10px; color: var(--nt-muted); }

/* 价格：上行「输入 X  输出 Y」，下行「CNY / 1M Token」 */
.model-grid.as-list .ml-price { display: flex; flex-direction: column; gap: 2px; line-height: 17px; }
.model-grid.as-list .ml-p-line { display: inline-flex; align-items: baseline; gap: 5px; }
.model-grid.as-list .ml-p-k { font-size: 10.5px; color: var(--nt-muted); }
.model-grid.as-list .ml-p-v { font-size: 11.5px; color: var(--nt-ink); margin-right: 12px; }
.model-grid.as-list .ml-p-unit { font-size: 9.5px; color: var(--nt-faint); }
/* 缓存：上行金额，下行 / 1M */
.model-grid.as-list .ml-cache { display: flex; flex-direction: column; gap: 2px; line-height: 17px; }
.model-grid.as-list .ml-c-v { font-size: 11.5px; color: var(--nt-ink); }
.model-grid.as-list .ml-c-unit { font-size: 9.5px; color: var(--nt-faint); }

/* 列宽改为 7 列（去掉标签），价格/缓存文字不换行 */
.model-grid.as-list .ml-head,
.model-grid.as-list .ml-row {
  grid-template-columns: 1.5fr .8fr 1.25fr .7fr 1.05fr 1fr 1.5fr;
}
.model-grid.as-list .ml-p-k,
.model-grid.as-list .ml-p-v,
.model-grid.as-list .ml-c-v,
.model-grid.as-list .ml-c-unit,
.model-grid.as-list .ml-type { white-space: nowrap; }
.model-grid.as-list .ml-p-line { flex-wrap: nowrap; }

/* 分组：胶囊完整自然宽度，容器裁边，+N 不裁（对齐原站 OverflowList 语义） */
.model-grid.as-list .ml-groups {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 4px;
  min-width: 0; max-width: 100%; overflow: hidden;
}
.model-grid.as-list .ml-gb { flex: 0 0 auto !important; max-width: none !important; overflow: visible !important; white-space: nowrap; }
.model-grid.as-list .ml-gb > * { min-width: 0; white-space: nowrap; overflow: visible; text-overflow: clip; }
.model-grid.as-list .ml-more {
  flex: 0 0 auto; padding: 0 6px; height: 20px; line-height: 18px;
  border-radius: 999px; background: rgba(255,255,255,.08);
  font-size: 10px; color: var(--nt-muted); white-space: nowrap;
}

/* 订单历史：实心按钮（与「去支付」同组尺寸），不再是无底蓝色文字 */
.tp-head .tp-history {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  height: 32px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--nt-line); background: rgba(255,255,255,.04);
  color: var(--nt-ink); font-size: 12px; text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tp-head .tp-history:hover { border-color: var(--nt-accent); background: rgba(255,255,255,.08); color: var(--nt-ink); }
.tp-head .tp-history svg { display: block; color: var(--nt-muted); }
.tp-head .tp-history:hover svg { color: var(--nt-ink); }

/* 「· 节省 N」用绿色，圆点同色（与上游一致） */
.tp-tile .tp-save { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; color: #4cc38a; font-size: 10px; }
.tp-tile .tp-save .tp-dot { width: 3px; height: 3px; border-radius: 50%; background: #4cc38a; flex: none; }

/* 推荐计划图标：圆形底 + 分享图标 */
.rf .rf-ico {
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(155,124,224,.16); color: #b9a6ff; flex: none;
}
.rf .rf-ico svg { display: block; }

/* 整页控件统一胶囊圆角（对齐上游），不再有方角小圆角 */
.home-grid .card, .home-wide, .tabs, .tabs button,
.tp-tile, .tp-head .tp-history, .tp-head button.primary,
.tp-custom-row input, .tp-field input, .rf-link,
.rf .rf-copy, .board-seg, .board-seg button,
.card button, .card .ghost, .card .primary, .chip {
  border-radius: 999px;
}
/* 输入框保持胶囊但保留内边距 */
.tp-custom-row input, .tp-field input, .rf-link { padding-left: 14px; padding-right: 14px; }
/* 大卡片本身用较大圆角，不要变胶囊（内容多） */
.home-grid .card, .home-wide { border-radius: 18px; }
/* 分段控件（日/周/月）胶囊化 */
.board-seg { padding: 3px; }
.board-seg button { border-radius: 999px; }

/* 「¥196 · 节省 4」整行同一基线：金额、圆点、节省文字都按 14px 行盒对齐 */
.tp-tile .tp-pay {
  display: inline-flex; align-items: baseline; gap: 5px;
  line-height: 14px; font-size: 10px;
}
.tp-tile .tp-pay > span:first-child { line-height: 14px; }
.tp-tile .tp-save { align-items: baseline; margin-left: 0; line-height: 14px; font-size: 10px; }
.tp-tile .tp-save .tp-dot { align-self: center; margin-top: 1px; }

/* 金额档位恢复原本的圆角矩形（10px），不要大胶囊 */
.tp-tile { border-radius: 10px !important; }

/* 自定义金额 / 待支付金额：应用胶囊设计 */
.tp-custom-row .tp-field,
.tp-custom-row .tp-due { border-radius: 999px; border: 1px solid var(--nt-line); background: rgba(0,0,0,.22); }
.tp-custom-row .tp-field { height: 40px; padding: 0 6px 0 14px; }
.tp-custom-row .tp-field input { border: 0; background: transparent; height: 38px; border-radius: 999px; }
.tp-custom-row .tp-due { height: 40px; padding: 0 16px; }
.tp-custom-row .tp-due b { font-size: 13px; }

/* 订单历史：可用时与「去支付」等高（32px）；去支付不可用时只缩 2px，避免灰态显大 */
.tp-head .tp-history { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 12px; }
.tp-head .tp-history.dim { height: 30px; padding: 0 12px; }
.tp-head .tp-pay-btn { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 12.5px; }

/* 自定义金额/待支付金额：与兑换码输入框同高（36px），不再显肥 */
.tp-custom-row .tp-field,
.tp-custom-row .tp-due { height: 36px; }
.tp-custom-row .tp-field input { height: 34px; }
.tp-custom-row .tp-field { padding: 0 4px 0 12px; }
.tp-custom-row .tp-due { padding: 0 14px; }
/* 兑换码输入框也统一胶囊 */
.tp-input { height: 36px; border-radius: 999px; padding: 0 14px; }

/* 代金券：总额行 + 胶囊化列表（内部无竖条，徽标与金额两端对齐） */
.home-grid .voucher-total,
.card .voucher-total {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0 8px; font-size: 11.5px;
}
.card .voucher-total .vt-k { color: var(--nt-muted); }
.card .voucher-total .vt-v { color: var(--nt-ink); font-family: var(--nt-code); font-weight: 600; }
.card .vouchers { display: flex; flex-direction: column; gap: 6px; }
.card .voucher {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 34px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--nt-line); background: rgba(255,255,255,.02);
  position: relative;
}
/* 前面不再有任何竖条装饰（旧票根造型的 ::before 已从 style.css 移除） */
.card .voucher::before, .card .voucher::after { content: none; border: 0; }
.card .voucher .who {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1 1 auto; overflow: hidden;
}
.card .voucher .who .gb { display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.card .voucher .who .gb-tag { flex: none; }
.card .voucher .who .gb-rest { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card .voucher .vname { font-size: 11.5px; color: var(--nt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .voucher .amt { flex: none; font-family: var(--nt-code); font-size: 11.5px; color: #e0a44a; }

/* 映射浮层：绝对定位在模型单元格下方，不占列宽也不撑高行 */
.logs .lg-cell-stack { position: relative; }
.logs .lg-map-pop {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 6px;
  width: max-content; min-width: 240px; max-width: 360px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--nt-line); background: #1b1d22;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.logs .lg-map-title { font-size: 10px; color: var(--nt-faint); margin-bottom: 2px; }
.logs .lg-map-row { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.logs .lg-map-k { flex: none; width: 78px; font-size: 10.5px; color: var(--nt-muted); }
.logs .lg-map-v { font-size: 11px; color: var(--nt-ink); font-family: var(--nt-code); }

/* 可点击的令牌胶囊 */
.logs .lg-copyable { cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.logs .lg-copyable:hover { border-color: var(--nt-accent); background: rgba(255,255,255,.06); }
/* 顶部提示条 */
.nt-toast {
  position: fixed; left: 50%; top: 14px; transform: translate(-50%, -14px);
  z-index: 90; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: #1f2d24; border: 1px solid rgba(76,195,138,.5); color: #7fe0a8;
  font-size: 12px; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nt-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nt-toast.bad { background: #2d1f22; border-color: rgba(224,107,122,.5); color: #ff9aa6; }
.nt-toast-icon { font-size: 12px; }

/* 分组倍率小字 */
.logs .gb-mul { font-size: 9.5px; color: var(--nt-faint); margin-left: 2px; font-family: var(--nt-code); }

/* 模型名可点：悬停时轻微高亮，提示可展开映射 */
.logs .lg-model-tap { cursor: pointer; border-radius: 8px; padding: 1px 4px; margin: -1px -4px; transition: background-color .12s ease; }
.logs .lg-model-tap:hover { background: rgba(255,255,255,.06); }
/* 复制反馈不再用徽标，隐藏旧样式 */
.copy-badge { display: none !important; }

/* 费用列：胶囊与首行同一基线（逐条与汇总都走这里） */
.logs .lg-cost { font-family: var(--nt-code); font-size: 11px; white-space: nowrap; }
.logs .lg-cell-stack > .lg-pill.lg-cost { height: 18px; }

/* 放开裁剪后：表头与末行自己带圆角，视觉仍是整块圆角卡片 */
.logs .lg-table .lg-row.head { border-radius: 12px 12px 0 0; }
.logs .lg-table .lg-row:last-child { border-radius: 0 0 12px 12px; }
/* 浮层提到最上层，避免被后续行覆盖 */
.logs .lg-map-pop { z-index: 80; }

/* 关键：承载浮层的单元格不能 overflow:hidden，否则浮层被裁掉、点开也看不到。
   但列里的文字必须自己裁：否则内容会越界压到下一列，看起来像列没对齐。 */
.logs .lg-row > .lg-cell-stack { overflow: visible; }
.logs .lg-row > .lg-cell-stack > span { min-width: 0; max-width: 100%; }
.logs .lg-row > .lg-cell-stack .lg-model,
.logs .lg-row > .lg-cell-stack .lg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logs .lg-row > .lg-cell-stack > span:not(.lg-map-pop),
.logs .lg-row > .lg-cell-stack > span > span:not(.lg-map-pop) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
/* 详情列可能较长：允许两行内省略，不越界 */
.logs .lg-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 令牌列只放令牌胶囊（一行）；分组徽标整体移到最后一列「分组详情」。
   令牌列因此收窄，末列加宽到 1.7fr 放得下 满血/低价/组名/倍率。 */
.logs .lg-row > .lg-token-row {
  display: flex; flex-direction: row; align-items: center; gap: 0;
  min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden;
}
.logs .lg-token-row > .lg-pill { flex: none; max-width: 100%; overflow: hidden; }

/* 第一格第二行：类型标签（消耗/消费/充值…）+ 令牌胶囊，同一行紧挨着。
   父级是 column flex，不加这条会把两者拆成两行。 */
.logs .lg-meta-row {
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  min-width: 0; max-width: 100%; white-space: nowrap; flex-wrap: nowrap;
}
.logs .lg-meta-row > .lg-tag { flex: none; }
.logs .lg-meta-row > .lg-pill { min-width: 0; flex: 0 1 auto; overflow: hidden; }
.logs .lg-meta-row > .lg-gb {
  display: inline-flex; align-items: center; min-width: 0; max-width: 100%;
  overflow: hidden; white-space: nowrap;
}
.logs .lg-meta-row .gb {
  display: inline-flex; align-items: center; gap: 3px;
  min-width: 0; max-width: 100%; white-space: nowrap; flex-wrap: nowrap;
}
.logs .lg-meta-row .gb-tag,
.logs .lg-meta-row .gb-mul { flex: none; }
.logs .lg-meta-row .gb-rest { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分组列（第 3 列）：徽标内部单行，长组名用省略号，不许折行。 */
.logs .lg-row > .lg-group-cell {
  display: flex; align-items: center; min-width: 0; max-width: 100%; overflow: hidden;
}
/* 模型 + 思考强度同排：模型在前，强度跟在后面，不换行。
   容器要撑满整列（width:100%），胶囊才有收缩空间——否则它按内容宽度撑开，
   溢出 grid 列后被外层硬裁，连省略号都不出现。 */
.logs .lg-model-inline {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; max-width: 100%; width: 100%; white-space: nowrap;
}
.logs .lg-model-inline .lg-model { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 胶囊：覆盖 .lg-pill 的 width:fit-content，改成可收缩的 flex 子项；
   图标不参与收缩，文字 span 自己省略。 */
.logs .lg-model-pill {
  width: auto; flex: 0 1 auto;
  min-width: 0; overflow: hidden;
}
.logs .lg-model-pill > span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.logs .lg-model-pill > svg,
.logs .lg-model-pill > img,
.logs .lg-model-pill > i { flex: none; }
.logs .lg-model-inline .lg-effort { flex: none; }
.logs .lg-model-inline .lg-map { flex: none; }
.logs .lg-group-cell .lg-gb {
  display: inline-flex; align-items: center; min-width: 0; max-width: 100%;
  overflow: hidden; white-space: nowrap;
}
.logs .lg-group-cell .gb {
  display: inline-flex; align-items: center; gap: 3px;
  min-width: 0; max-width: 100%; white-space: nowrap; flex-wrap: nowrap;
}
.logs .lg-group-cell .gb-tag,
.logs .lg-group-cell .gb-mul { flex: none; }
.logs .lg-group-cell .gb-rest { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 耗时列：左侧细竖条按总耗时分档——绿（<5s）/ 橙黄（5–15s）/ 红（≥15s）。
   类名用 lg-dur，刻意避开工具栏的 .lg-bar（那是带边框的胶囊容器，套上会变丑）。 */
.logs .lg-dur {
  display: block; position: relative; padding-left: 9px;
  font-size: 10px; line-height: 18px; color: var(--nt-muted);
  font-variant-numeric: tabular-nums;
  border: 0; background: none; border-radius: 0;
}
.logs .lg-dur::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 3px; border-radius: 2px; background: currentColor; opacity: .9;
}
.logs .lg-dur b { font-family: var(--nt-code); font-weight: 600; }
.logs .lg-dur-fast { color: #4cc38a; }
.logs .lg-dur-fast b { color: #4cc38a; }
.logs .lg-dur-mid { color: #e0a44a; }
.logs .lg-dur-mid b { color: #e0a44a; }
.logs .lg-dur-slow { color: #e06b7a; }
.logs .lg-dur-slow b { color: #e06b7a; }
.logs .lg-dur-none { color: var(--nt-faint); }
.logs .lg-dur-none::before { background: transparent; }

/* 模型胶囊：液态玻璃——半透明底 + 内高光 + 轻微模糊，边框极细 */
.logs .lg-model-pill {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 1px 2px rgba(0,0,0,.22);
  padding: 2px 10px 2px 8px;
}
.logs .lg-model-pill:hover {
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
}

/* 耗时列（最后一列）保持常规左对齐，不贴右边界 */
.logs .lg-row > .lg-cell-stack.lg-time { align-items: flex-start; text-align: left; }
