@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/pricing/assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/pricing/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/pricing/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/pricing/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F7F4ED;
  --surface: #FFFFFF;
  --surface-subtle: #EFEAE0;
  --ink: #14120E;
  --ink-2: #36312A;
  --muted: #6A645A;
  --dim: #9A9388;
  --line: rgba(20, 18, 14, 0.08);
  --line-mid: rgba(20, 18, 14, 0.15);
  --line-ink: #14120E;

  /* 统一折扣色：暖琥珀浅金底 + 深古铜粗字 */
  --bronze: #84552B;
  --bronze-deep: #6E3F13;
  --gold-accent: #C88628;
  --gold-bg: #FBF0D9;
  --gold-border: rgba(186, 122, 34, 0.42);

  --ok: #1B744E;
  --ok-track: rgba(27, 116, 78, 0.14);
  --terminal: #161411;
  --terminal-text: #ECE7DE;

  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --font-num: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1248px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 18, 14, 0.18) transparent;
}
body { background: var(--bg); color: var(--ink); min-height: 100vh; overflow-x: clip; }

::selection { background: rgba(200, 134, 40, 0.22); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--bronze); outline-offset: 2px; border-radius: 3px; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==================== 通用控件（币种切换与按钮） ==================== */
.seg {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  background: var(--bg);
  height: 32px;
}
.seg button {
  padding: 0 9px;
  height: 26px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 4px;
  transition: all 140ms ease;
}
.seg button:hover { color: var(--ink); }
.seg button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 18, 14, 0.07);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 150ms var(--ease-expo);
}
.btn-ink { background: var(--ink); color: #FAF9F6; }
.btn-ink:hover { background: #2A251E; }
.btn-hairline { border: 1px solid var(--line-mid); color: var(--ink); background: transparent; }
.btn-hairline:hover { border-color: var(--ink); background: var(--surface); }

/* ==================== 布局 A · 工作台主容器 ==================== */
.page-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 96px;
}

.ledger-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.main-head-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.main-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.main-lead {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ==================== 左侧完整控制栏 ==================== */
.rail {
  position: sticky;
  top: 88px;
  border-right: 1px solid var(--line);
  padding-right: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
}

.rail-search {
  position: relative;
  display: flex;
  align-items: center;
}
.rail-search-ico {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--dim);
  pointer-events: none;
}
.rail-search input {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 31px;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.rail-search input::placeholder { color: var(--dim); }
.rail-search input:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(132, 85, 43, 0.08);
}
.rail-search-kbd {
  position: absolute;
  right: 8px;
  font-size: 10.5px;
  color: var(--dim);
  border: 1px solid var(--line-mid);
  border-radius: 3px;
  padding: 0 5px;
  line-height: 17px;
  pointer-events: none;
}
.rail-search-clear {
  position: absolute;
  right: 7px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.rail-search-clear:hover { background: var(--surface-subtle); color: var(--ink); }

.rail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.rail-list { display: flex; flex-direction: column; gap: 2px; }

.rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6.5px 9px;
  margin: 0 -9px;
  width: calc(100% + 18px);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background 120ms ease, color 120ms ease;
  text-align: left;
}
.rail-item:hover { background: rgba(20, 18, 14, 0.04); color: var(--ink); }
.rail-item.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 18, 14, 0.06), inset 0 0 0 1px var(--line);
}
.rail-item-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.rail-ico {
  width: 15px;
  height: 15px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 120ms ease;
}
.rail-ico svg { width: 14px; height: 14px; }
.rail-item:hover .rail-ico { color: var(--ink); }
.rail-item.active .rail-ico { color: var(--bronze); }

.rail-cnt { font-size: 11.5px; color: var(--dim); flex-shrink: 0; }
.rail-item.active .rail-cnt { color: var(--bronze); font-weight: 600; }

.rail-sep { height: 1px; background: var(--line); }

.rail-select {
  width: 100%;
  height: 34px;
  padding: 0 28px 0 10px;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236A645A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 140ms ease;
}
.rail-select:hover, .rail-select:focus { border-color: var(--bronze); }

.rail-more {
  margin-top: 4px;
  font-size: 12px;
  color: var(--dim);
  text-align: left;
  padding: 4px 0;
}
.rail-more:hover { color: var(--ink); }

.rail-sales {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rail-sales-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.rail-sales-desc { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.rail-sales-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bronze-deep);
  border-bottom: 1px solid rgba(132, 85, 43, 0.35);
  padding-bottom: 2px;
  transition: border-color 150ms ease, gap 180ms var(--ease-expo);
}
.rail-sales-link:hover { border-color: var(--bronze-deep); gap: 8px; }

/* ==================== 右侧主区 & 筛选/排序条 ==================== */
.main-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  font-size: 12px;
  color: var(--ink);
}
.filter-chip button { color: var(--dim); font-size: 11px; line-height: 1; }
.filter-chip button:hover { color: var(--ink); }

.sort-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.sort-inline select {
  height: 30px;
  padding: 0 24px 0 8px;
  background: transparent;
  border: 1px solid var(--line-mid);
  border-radius: 5px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236A645A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
}
.sort-inline select:hover { border-color: var(--ink); }

/* ==================== 精密固定列宽表格 ==================== */
.mod-section { margin-bottom: 40px; }
.mod-section:last-of-type { margin-bottom: 14px; }

.mod-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mod-sec-title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.mod-sec-cnt { font-size: 12px; font-weight: 500; color: var(--dim); }
.mod-sec-unit { font-size: 12px; color: var(--dim); }

.table-shell {
  width: 100%;
  border-top: 1.5px solid var(--line-ink);
  border-bottom: 1.5px solid var(--line-ink);
}

.rate-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.rate-table thead th {
  padding: 10px 10px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-mid);
  white-space: nowrap;
  user-select: none;
}
.rate-table thead th:first-child { padding-left: 12px; }
.rate-table thead th:last-child { padding-right: 8px; }
.rate-table thead th.r { text-align: right; }

.rate-table tbody tr.family-row {
  background: transparent;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.rate-table tbody tr.family-row:hover { background: transparent; }
.rate-table tbody tr.family-row td {
  padding: 18px 10px 7px 12px;
  vertical-align: middle;
}
.rate-table tbody tr.family-row:first-child td { padding-top: 12px; }
.rate-table tbody tr.family-row td:first-child::before { display: none; }

.fam-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.fam-ico {
  width: 14px;
  height: 14px;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fam-ico svg { width: 13px; height: 13px; }
.fam-meta { font-weight: 400; color: var(--dim); font-size: 11.5px; }

.rate-table tbody tr.model-row {
  border-bottom: 1px solid var(--line);
  transition: background 130ms ease;
  cursor: pointer;
}
.rate-table tbody tr.model-row:last-child { border-bottom: 0; }
.rate-table tbody tr.model-row:hover { background: var(--surface); }

.rate-table tbody tr.model-row td {
  padding: 13px 10px;
  vertical-align: middle;
}
.rate-table tbody tr.model-row td:first-child {
  padding-left: 12px;
  position: relative;
}
.rate-table tbody tr.model-row:hover td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--gold-accent);
}
.rate-table tbody tr.model-row td:last-child { padding-right: 8px; }
.rate-table td.r { text-align: right; }

.m-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.m-ico {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  opacity: 0.68;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 130ms ease, opacity 130ms ease;
}
.m-ico svg { width: 15px; height: 15px; }
.rate-table tbody tr.model-row:hover .m-ico { opacity: 1; color: var(--bronze); }

.m-body { min-width: 0; flex: 1; }
.m-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.m-id {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-vendor { font-size: 11.5px; color: var(--dim); white-space: nowrap; flex-shrink: 0; }

.copy-inline {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 130ms ease, background 120ms ease, color 120ms ease;
}
.rate-table tbody tr.model-row:hover .copy-inline,
.copy-inline.copied { opacity: 1; }
.copy-inline:hover { background: var(--surface-subtle); color: var(--ink); }
.copy-inline.copied { color: var(--ok); }

.m-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-main {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  line-height: 1.25;
  white-space: nowrap;
}
.p-sym { font-size: 11.5px; color: var(--muted); margin-right: 1px; font-weight: 400; }
.p-unit { font-size: 11px; color: var(--dim); margin-left: 2px; font-weight: 400; }
.p-from-tag { font-size: 10.5px; color: var(--dim); margin-left: 2px; font-weight: 400; }
.p-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}

/* 折扣列：全行第一视觉主角，统一暖琥珀浅金底 + 深古铜粗字 */
.disc-wrap { display: flex; align-items: center; justify-content: flex-end; }
.disc-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
}
.disc-pill .disc-unit { font-size: 11.5px; font-weight: 600; margin-left: 1px; }
.disc-pill .disc-from { font-size: 10.5px; font-weight: 500; opacity: 0.75; margin-left: 2px; }

.disc-pill.gold {
  background: var(--gold-bg);
  color: var(--bronze-deep);
  border: 1px solid var(--gold-border);
  box-shadow: 0 1px 2px rgba(132, 85, 43, 0.06);
}
.disc-pill.direct {
  background: var(--surface-subtle);
  color: var(--ink-2);
  border: 1px solid var(--line-mid);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 9px;
}

/* 实测表现列：可用率 + 文本相对速度微条 */
.perf-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.live-sr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ok);
  line-height: 1.2;
  white-space: nowrap;
}
.live-sr::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}
.speed-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.speed-track {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--ok-track);
  overflow: hidden;
  display: inline-block;
}
.speed-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ok);
}

.row-arrow {
  text-align: right;
  color: var(--dim);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 140ms ease, transform 180ms var(--ease-expo);
}
.rate-table tbody tr.model-row:hover .row-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--bronze);
}

.rate-table tbody tr.expand-row {
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.rate-table tbody tr.expand-row:last-child { border-bottom: 0; }
.rate-table tbody tr.expand-row:hover { background: rgba(20, 18, 14, 0.02); }
.rate-table tbody tr.expand-row td { padding: 8px 12px; font-size: 12px; }
.expand-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: color 130ms ease;
}
.rate-table tbody tr.expand-row:hover .expand-btn-inner { color: var(--bronze-deep); }
.expand-btn-inner svg { width: 13px; height: 13px; transition: transform 180ms var(--ease-expo); }
.expand-btn-inner.expanded svg { transform: rotate(180deg); }

.ledger-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.ledger-foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-mid);
  padding-bottom: 1px;
}
.ledger-foot a:hover { color: var(--bronze-deep); border-color: var(--bronze-deep); }

/* 加载态 / 异常态 */
.state-panel {
  padding: 72px 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1.5px solid var(--line-ink);
  border-bottom: 1px solid var(--line);
}
.state-panel button {
  margin-top: 14px;
}

/* ==================== 右侧详情抽屉 ==================== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.24);
  backdrop-filter: blur(2px);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(600px, 100vw);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(20, 18, 14, 0.06), -24px 0 64px rgba(20, 18, 14, 0.1);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 280ms var(--ease-expo);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-top {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.drawer-close:hover { background: var(--surface-subtle); color: var(--ink); }
.drawer-scroll { padding: 24px 28px 36px; overflow-y: auto; flex: 1; }
.d-sec { margin-bottom: 28px; }
.d-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.d-sec-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.d-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--line-ink);
  border-bottom: 1.5px solid var(--line-ink);
}
.d-table th {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line-mid);
  text-align: left;
}
.d-table th.r, .d-table td.r { text-align: right; }
.d-table td { padding: 12px 8px; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.d-table tbody tr:last-child td { border-bottom: 0; }
.d-table tbody tr.best-row { background: #FFFDF7; }
.d-table tbody tr.route-selectable { cursor: pointer; transition: background 120ms ease; }
.d-table tbody tr.route-selectable:hover { background: rgba(20, 18, 14, 0.025); }
.d-table tbody tr.selected-row { background: #FBF4E4; }
.d-table tbody tr.selected-row td:first-child { position: relative; }
.d-table tbody tr.selected-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--bronze);
}
.d-sec-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--bronze-deep);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 1px 7px;
  white-space: nowrap;
}
.d-sec-hint {
  font-size: 11px;
  color: var(--dim);
}
.tier-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  vertical-align: 1px;
  white-space: nowrap;
}
.tier-tag.live {
  color: var(--ok);
  background: var(--ok-track);
  border-color: rgba(27, 116, 78, 0.28);
}
.tier-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}
.tier-sub-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--muted);
}
.tier-sub-item { white-space: nowrap; }
.tier-sub-item strong { color: var(--ink-2); font-weight: 600; }
.best-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-accent);
  margin-right: 7px;
  vertical-align: 1px;
}
.route-desc { margin-top: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.45; font-weight: 400; }

.metric-strip {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-cell { padding: 14px 12px; border-right: 1px solid var(--line); }
.metric-cell:last-child { border-right: 0; }
.metric-k { font-size: 11.5px; color: var(--dim); }
.metric-v { margin-top: 4px; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }

.terminal { background: var(--terminal); color: var(--terminal-text); border-radius: 6px; overflow: hidden; }
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.terminal-tabs { display: flex; gap: 14px; }
.terminal-tabs button { color: #9A9388; font-weight: 500; }
.terminal-tabs button.active { color: #FAF9F6; }
.terminal-copy { color: #D7C2A6; font-size: 11.5px; }
.terminal-copy:hover { color: #FFFFFF; }
.terminal pre {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1080px) {
  .ledger-grid { grid-template-columns: 1fr; gap: 24px; }
  .rail {
    position: static;
    border-right: 0;
    padding-right: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    max-height: none;
  }
  .rail-vendors-wrap, .rail-sales, .rail-sep { display: none; }
  .rail-list { flex-direction: row; overflow-x: auto; gap: 6px; }
  .rail-item { width: auto; margin: 0; white-space: nowrap; }
}
@media (max-width: 720px) {
  .page-wrap { padding: 20px 16px 64px; }
  .rate-table { table-layout: auto; }
  .col-perf, .row-arrow { display: none; }
}

/* ==================== 控制台内嵌模式（?embed=1） ==================== */
html.is-embed {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-subtle: #F7F7F5;
}
html.is-embed.is-dark {
  color-scheme: dark;
  --bg: #171717;
  --surface: #1F1F1F;
  --surface-subtle: #262626;
  --ink: #F4EFE5;
  --ink-2: #D8D2C8;
  --muted: #9E988E;
  --dim: #757068;
  --line: rgba(244, 239, 229, 0.09);
  --line-mid: rgba(244, 239, 229, 0.16);
  --line-ink: rgba(244, 239, 229, 0.72);
  --bronze: #E1A34A;
  --bronze-deep: #F3C270;
  --gold-accent: #E1A34A;
  --gold-bg: rgba(225, 163, 74, 0.16);
  --gold-border: rgba(225, 163, 74, 0.36);
  --ok: #48BB78;
  --ok-track: rgba(72, 187, 120, 0.22);
}
html.is-embed #brioi-global-nav { display: none !important; }
html.is-embed .page-wrap { max-width: none; padding: 20px 28px 64px; }
html.is-embed .ledger-grid { display: block; }
html.is-embed .main-head { padding-bottom: 16px; margin-bottom: 16px; }
.embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.embed-mods {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.embed-mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.embed-mod-btn:hover { background: var(--surface-subtle); color: var(--ink); }
.embed-mod-btn.active {
  background: var(--surface-subtle);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line-mid);
}
.embed-mod-btn .rail-ico { width: 14px; height: 14px; opacity: 0.72; }
.embed-mod-btn.active .rail-ico { color: var(--bronze); opacity: 1; }
.embed-mod-cnt { font-size: 11.5px; color: var(--dim); }
.embed-mod-btn.active .embed-mod-cnt { color: var(--muted); }
.embed-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.embed-filters .rail-search { width: 220px; }
.embed-filters .rail-search input { height: 32px; font-size: 12.5px; }
.embed-select {
  height: 32px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  max-width: 190px;
}
.embed-select:focus { outline: none; border-color: var(--ink); }
html.is-embed.is-dark .embed-select { background: #1F1F1F; color: var(--ink); }
html.is-embed.is-dark .btn-ink { background: #F4EFE5; color: #16140F; }
html.is-embed.is-dark .btn-ink:hover { background: #FFFFFF; }
html.is-embed.is-dark .d-table tbody tr.best-row { background: rgba(225, 163, 74, 0.08); }
html.is-embed.is-dark .d-table tbody tr.route-selectable:hover { background: rgba(244, 239, 229, 0.04); }
html.is-embed.is-dark .d-table tbody tr.selected-row { background: rgba(225, 163, 74, 0.14); }
html.is-embed.is-dark .rate-table tbody tr.model-row:hover { background: rgba(244, 239, 229, 0.04); }
html.is-embed.is-dark .rail-item:hover { background: rgba(244, 239, 229, 0.06); }
html.is-embed.is-dark .rail-item.active { background: #262626; }
html.is-embed.is-dark .rail-search input,
html.is-embed.is-dark .rail-select,
html.is-embed.is-dark .sort-inline select { background: #1F1F1F; color: var(--ink); }
html.is-embed.is-dark .drawer { box-shadow: 0 0 0 1px rgba(244, 239, 229, 0.10), -24px 0 64px rgba(0, 0, 0, 0.55); }
