/* LMD Data API 控制台设计系统。默认亮色；data-theme="dark" 时切换暗色，不跟随系统。 */
:root {
  color-scheme: light;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f9fafb; --surface-3: #f2f4f7;
  --border: #e4e7ec; --border-strong: #d0d5dd;
  --text: #101828; --text-2: #475467; --text-3: #667085;
  --accent: #1d5fe0; --accent-hover: #174fbe; --accent-soft: #eef4ff; --accent-text: #174fbe; --on-accent: #ffffff;
  --ok: #067647; --ok-soft: #ecfdf3; --bad: #b42318; --bad-soft: #fef3f2; --warn: #93370d; --warn-soft: #fffaeb;
  --series-1: #2f6fed; --series-2: #d9472b; --grid: #eaecf0;
  --code-bg: #f8fafc; --tok-key: #1e3a8a; --tok-str: #05603a; --tok-num: #9a3412; --tok-kw: #7a271a; --tok-dim: #667085;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05); --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --radius: 8px; --radius-sm: 6px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 56px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116; --surface: #161b22; --surface-2: #1a2029; --surface-3: #212833;
  --border: #2a313c; --border-strong: #3a4351;
  --text: #e8ebf0; --text-2: #b1bac6; --text-3: #8d97a5;
  --accent: #5b92f5; --accent-hover: #77a5f7; --accent-soft: #18263f; --accent-text: #8db4f9; --on-accent: #0b1220;
  --ok: #4ec98a; --ok-soft: #10281d; --bad: #f2837a; --bad-soft: #331a18; --warn: #e6b35a; --warn-soft: #2d2412;
  --series-1: #4f86ee; --series-2: #d9573c; --grid: #262d37;
  --code-bg: #12171e; --tok-key: #8db4f9; --tok-str: #7bd3a3; --tok-num: #eab07a; --tok-kw: #f2a49c; --tok-dim: #8d97a5;
  --shadow: none; --shadow-lg: 0 16px 40px rgba(0, 0, 0, .5);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; line-height: 1.4; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: .925em; }
:not(pre) > code { padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text); word-break: break-word; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- 按钮与表单 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.icon { width: 34px; padding: 0; }
.btn svg { width: 16px; height: 16px; flex: none; }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.textarea { height: auto; padding: 9px 11px; resize: vertical; }
.select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808a99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 16px; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.input.invalid, .textarea.invalid { border-color: var(--bad); }
.field { display: grid; gap: 6px; }
.field > .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field > .hint { font-size: 12px; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.switch { position: relative; width: 36px; height: 20px; flex: none; appearance: none; margin: 0; border-radius: 10px; background: var(--border-strong); cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-3); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow); }

/* ---- 标签 ---- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); font-size: 12px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.info { background: var(--accent-soft); color: var(--accent-text); }
.method { font: 600 11px/18px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); }
.method.get { background: var(--ok-soft); color: var(--ok); }
.req { color: var(--bad); font-size: 12px; }

/* ---- 面板与表格 ---- */
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child > td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover > td { background: var(--surface-2); }
.table th.right, .table td.right { text-align: right; }
.table td.num { font-variant-numeric: tabular-nums; }
.empty { padding: 44px 18px; text-align: center; color: var(--text-3); }
.empty strong { display: block; margin-bottom: 4px; color: var(--text-2); font-weight: 600; }
.notice { display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text-2); font-size: 13px; }
.notice.warn { background: var(--warn-soft); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.skeleton { height: 16px; border-radius: 4px; background: var(--surface-3); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---- 指标 ---- */
.kpi .s { overflow-wrap: anywhere; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.kpi .k { color: var(--text-3); font-size: 13px; }
.kpi .v { margin-top: 4px; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi .s { margin-top: 4px; color: var(--text-3); font-size: 12px; }
.meter { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 3px; background: var(--series-1); }
.meter.warn > i { background: #d98a1f; }
.meter.bad > i { background: var(--series-2); }

/* ---- 顶栏 ---- */
.header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: var(--header-h); padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand .sub { color: var(--text-3); font-weight: 400; }
.nav { display: flex; align-items: stretch; gap: 2px; height: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--text-2); white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { border-color: var(--accent); color: var(--text); font-weight: 550; }
.header .end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13px; padding: 0 6px; }

/* ---- 页面 ---- */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; color: var(--text-3); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

/* ---- 登录 ---- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-side { display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; border-right: 1px solid var(--border); background: var(--surface); }
.login-side h1 { max-width: 22ch; font-size: 30px; line-height: 1.3; }
.login-side ul { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.login-side li { display: grid; gap: 1px; padding-left: 14px; border-left: 2px solid var(--border); }
.login-side li b { color: var(--text); font-weight: 600; }
.login-main { display: grid; place-items: center; padding: 32px 24px; }
.login-card { width: min(380px, 100%); display: grid; gap: 18px; }
.login-card .btn { height: 40px; }
.login-single { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-single .login-card { padding: 32px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }

/* ---- 接口文档 ---- */
.docs { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.sidebar { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); }
.sidebar .search { padding: 14px; border-bottom: 1px solid var(--border); }
.sidebar nav { flex: 1; overflow-y: auto; padding: 10px 10px 32px; }
.sidebar .cat { padding: 14px 8px 4px; color: var(--text-3); font-size: 12px; font-weight: 500; }
.sidebar .plat { width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; border-radius: var(--radius-sm); background: none; text-align: left; font-weight: 500; cursor: pointer; }
.sidebar .plat:hover { background: var(--surface-3); }
.sidebar .plat svg { width: 14px; height: 14px; color: var(--text-3); transition: transform .12s; flex: none; }
.sidebar .plat[aria-expanded="true"] svg { transform: rotate(90deg); }
.sidebar .plat .count { margin-left: auto; color: var(--text-3); font-size: 12px; font-weight: 400; }
.sidebar .eps { display: grid; margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--border); }
.sidebar .eps a { padding: 5px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13px; }
.sidebar .eps a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.sidebar .eps a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 550; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 32px; max-width: 1440px; padding: 28px 32px 80px; align-items: start; }
.doc.single { grid-template-columns: minmax(0, 860px); }
.doc-main { display: grid; gap: 30px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.doc-side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; display: grid; gap: 16px; min-width: 0; grid-template-columns: minmax(0, 1fr); scrollbar-width: thin; }
.crumb { color: var(--text-3); font-size: 13px; margin-bottom: 4px; }
.endpoint-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.endpoint-line code { flex: 1; min-width: 0; padding: 0; background: none; overflow-wrap: anywhere; }
.meta-line { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lead { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.notes { display: grid; gap: 6px; margin: 12px 0 0; padding-left: 18px; color: var(--text-2); }
.section { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.section > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.section > h3 { margin-top: 4px; color: var(--text-2); }
.params { display: grid; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.param { padding: 12px 16px; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.param:last-child { border-bottom: 0; }
.param .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.param .name { font: 600 13px var(--mono); overflow-wrap: anywhere; }
.param .type { color: var(--text-3); font: 12px var(--mono); }
.param .desc { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.param .extra { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }
.prose { color: var(--text-2); max-width: 76ch; }
.prose p + p { margin-top: 8px; }

/* ---- 代码与 JSON ---- */
.code { border: 1px solid var(--border); border-radius: var(--radius); background: var(--code-bg); overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.code-head .title { font-size: 13px; font-weight: 500; }
.code-head .end { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.code pre { margin: 0; padding: 12px 14px; overflow: auto; font: 12.5px/1.65 var(--mono); white-space: pre; tab-size: 2; }
.code .scroll { max-height: 460px; overflow: auto; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 32px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-3); font-size: 13px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--text); font-weight: 550; }
.tabs.lined { border-bottom: 1px solid var(--border); gap: 8px; }
.tabs.lined button { height: 38px; }
.tok-key { color: var(--tok-key); } .tok-str { color: var(--tok-str); } .tok-num { color: var(--tok-num); } .tok-kw { color: var(--tok-kw); } .tok-dim { color: var(--tok-dim); }
.json { padding: 10px 12px; font: 12.5px/1.65 var(--mono); overflow-x: auto; }
.json .ln { display: block; white-space: pre; }
.json .tg { display: inline-block; width: 14px; margin-left: -14px; border: 0; padding: 0; background: none; color: var(--text-3); cursor: pointer; font: inherit; text-align: center; }
.json .kids { padding-left: 18px; }
.json .root { padding-left: 14px; }
.json .sum { color: var(--tok-dim); cursor: pointer; }
.json .v { white-space: pre-wrap; overflow-wrap: anywhere; }
.schema { font-size: 13px; }
.schema .srow { display: grid; grid-template-columns: minmax(200px, 42%) 90px minmax(0, 1fr); gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--border); align-items: baseline; }
.schema .srow:last-child { border-bottom: 0; }
.schema .srow.th { background: var(--surface-2); color: var(--text-3); font-size: 12px; }
.schema .fname { font: 12.5px var(--mono); overflow-wrap: anywhere; }
.schema .fname button { width: 16px; margin-left: -16px; border: 0; padding: 0; background: none; color: var(--text-3); cursor: pointer; }
.schema .ftype { color: var(--text-3); font: 12px var(--mono); }
.schema .fdesc { color: var(--text-2); overflow-wrap: anywhere; }
.editor { width: 100%; min-height: 150px; border: 0; padding: 12px 14px; background: var(--code-bg); font: 12.5px/1.65 var(--mono); resize: vertical; display: block; white-space: pre; overflow: auto; }
.editor:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.try-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.try-inputs { display: grid; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.res-meta { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); background: var(--surface); }
.diag { padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bad-soft); color: var(--text-2); font-size: 13px; }
.diag b { color: var(--bad); }

/* ---- 图表 ---- */
.legend { display: flex; gap: 16px; color: var(--text-2); font-size: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart text { fill: var(--text-3); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .band { fill: transparent; }
.chart g.col:hover .band, .chart g.col:focus .band { fill: var(--surface-3); }
.chart g.col:focus { outline: none; }
.tip { position: absolute; z-index: 5; min-width: 150px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-lg); font-size: 12px; pointer-events: none; }
.tip b { display: block; margin-bottom: 3px; }
.tip div { display: flex; justify-content: space-between; gap: 18px; color: var(--text-2); }
.tip div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---- 抽屉、弹窗、提示 ---- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(16, 24, 40, .42); }
.overlay.center { align-items: center; justify-content: center; padding: 20px; }
.drawer { width: min(720px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-lg); }
.dialog { width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lg); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.sheet-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; }
.toast { max-width: 380px; padding: 11px 16px; border-radius: var(--radius-sm); background: #1d2939; color: #fff; font-size: 13px; box-shadow: var(--shadow-lg); overflow-wrap: anywhere; }
.toast.bad { background: #912018; }
.perm { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.perm-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.perm-row:last-child { border-bottom: 0; }
.perm-row.group { background: var(--surface-2); font-weight: 600; position: sticky; top: 0; }
.perm-row .grow { flex: 1; min-width: 0; }
.perm-row .price { width: 96px; height: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.perm-row .price.changed { border-color: var(--accent); background: var(--accent-soft); }
.secret { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--code-bg); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.secret span { flex: 1; min-width: 0; }

/* ---- 响应式 ---- */
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .login { grid-template-columns: minmax(0, 1fr); }
  .login-side { display: none; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: var(--header-h); z-index: 25; width: min(300px, 86vw); transform: translateX(-101%); transition: transform .18s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .header { gap: 10px; padding: 0 12px; }
  .brand .sub, .who { display: none; }
  .page, .doc { padding: 20px 16px 56px; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .page > *, .stack > * { min-width: 0; }
  .header { gap: 4px; } .nav a { padding: 0 9px; }
  .kpi { padding: 12px 14px; } .kpi .v { font-size: 20px; }
  .schema .srow { grid-template-columns: minmax(0, 1fr) auto; }
  .schema .srow .fdesc { grid-column: 1 / -1; }
  .schema .srow.th .fdesc { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* 滚动容器中的标签栏不能被网格压缩；抽屉内固定在顶部 */
.tabs { min-height: 34px; }
.tabs.lined { min-height: 39px; }
.sheet-body > .tabs.lined { position: sticky; top: -20px; z-index: 2; margin: -20px -20px 0; padding: 4px 20px 0; min-height: 44px; background: var(--surface); }
