/* ── 本系统组件层（只引用 token；原始色值只在 tokens.css 的 :root） ── */
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* 标题与强调字重上限 600（字体「字阶」）。用 :where() 保持零优先级，逐处已有的 400／500 语义不受影响；
   需要 700 的装饰性字符图形已按组件「图标」替换，不能靠这里放宽 */
:where(h1, h2, h3, h4, h5, h6, b, strong) { font-weight: 600; }
/* 换行：段落末行不只剩 1 个字，标题各行长度均衡（支持 text-wrap-style 的浏览器生效，其余照常换行） */
body { text-wrap-style: pretty; }
h1, h2, h3, h4 { text-wrap-style: balance; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.fg2 { color: var(--fg-2); }
.row { display: flex; align-items: center; gap: var(--space-2); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.stack > * + * { margin-top: var(--space-3); }
.grow { flex: 1 1 auto; min-width: 0; }

/* 图标：24 viewBox · 1.6 描边 · 圆角端点 */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 0.5px solid var(--glass-border); background: var(--glass-bg); background: color-mix(in oklch, var(--bg) 55%, transparent);
  color: var(--fg); font-size: var(--text-table); font-weight: 500; white-space: nowrap;
  transition: background var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.btn-lg { height: 46px; padding: 0 22px; font-size: var(--text-body); }
.btn-primary { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.btn-danger { background: var(--danger); color: var(--accent-on); border-color: var(--danger); }
.btn-text { background: transparent; border-color: transparent; color: var(--accent-ink); padding: 0 10px; height: 32px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover { background: var(--glass-bg-strong); background: color-mix(in oklch, var(--bg) 82%, transparent); }
  .btn-primary:hover { background: var(--accent); border-color: var(--accent-active); box-shadow: 0 0 0 1px var(--accent-active), var(--glass-shadow-sm); }
  .btn-danger:hover { background: var(--danger); border-color: var(--danger-ink); box-shadow: 0 0 0 1px var(--danger-ink), var(--glass-shadow-sm); }
  .btn-text:hover { background: var(--accent-soft); }
}
/* 按下即时生效（形状与动效「按压与悬停」）：:root 提高优先级，避免后声明的带缓动过渡的规则（如 .map-page .filter-btn）把 0ms 覆盖掉 */
:root .btn:active { transform: scale(.97); transition-duration: 0ms; }
.btn-primary:active { background: var(--accent-active); }
.btn:focus-visible { box-shadow: var(--focus-ring); }
/* 有语义的禁用态（组件「表单」）：不整体降透明度，文字 --muted、不透明浅底，以禁用属性和光标表达不可用；放在悬停规则之后以覆盖悬停 */
:root :is(.btn, .chip):is(:disabled, [aria-disabled="true"]) { background: var(--fill-soft); background: color-mix(in oklch, var(--fg) 3%, var(--bg)); border-color: var(--border-soft); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
:root .btn-text:is(:disabled, [aria-disabled="true"]) { background: transparent; border-color: transparent; }
.btn.is-busy { pointer-events: none; opacity: .7; }

/* ── 表单 ── */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: var(--text-label); font-weight: 500; color: var(--fg-2); }
.req { color: var(--danger-ink); margin-left: 2px; }
.input-shell {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  /* D-01 填充式（跟进执法监管系统 2026-10-17 的决定）：不透明 --fill-soft 底，0.5px 玻璃描边 + 内描边作辅助，字段以可见标签与填充底识别 */
  border-radius: var(--radius-md); background: var(--fill-soft);
  border: 0.5px solid var(--glass-border); box-shadow: inset 0 0 0 0.5px var(--border);
  transition: box-shadow var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}
.input-shell input, .input-shell select { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: var(--text-table); } /* width:100% 让输入框不以固有宽度撑开窄容器（200% 字号） */
.input-shell input::placeholder { color: var(--muted); }
.input-shell .unit { color: var(--muted); font-size: var(--text-label); white-space: nowrap; }
.input-shell.num input { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .input-shell:hover { box-shadow: inset 0 0 0 0.5px var(--meta); } }
.input-shell:focus-within { border-color: var(--control-focus-border); }
.input-shell:has(:focus-visible) { box-shadow: var(--focus-ring); }
/* 焦点环只画在外壳上，内部输入不重复画环（组件「表单」）；增强对比度时内部仍保留独立的焦点轮廓 */
.input-shell :is(input, select):focus-visible, .search-cap input:focus-visible, .m-search input:focus-visible { box-shadow: none; }
.input-shell.is-error { border-color: var(--danger); box-shadow: inset 0 0 0 0.5px var(--danger); }
/* 只看外壳的直接子控件：select 里个别 option 禁用不算控件禁用（AD-15） */
.input-shell:is(.is-disabled, :has(> :disabled)) { background: var(--fill-soft); background: color-mix(in oklch, var(--fg) 3%, var(--bg)); box-shadow: inset 0 0 0 0.5px var(--border-soft); color: var(--muted); cursor: not-allowed; }
.input-shell:is(.is-disabled, :has(> :disabled)) :is(input, select) { color: var(--muted); cursor: not-allowed; }
/* 触控尺寸查询：可编辑控件至少 max(16px, 1rem)（避免 iOS 聚焦放大），外壳至少 44px 高，隐藏过小的数字步进器（字体「触屏可编辑字号」、布局与断点「密度与触控」、组件「表单」） */
@media (pointer: coarse) and (max-width: 1023px), (max-width: 640px) {
  .input-shell { height: auto; min-height: 44px; padding-block: 0; }
  /* 控件可点区域覆盖整个 44px 外壳（外壳 padding-block 为 0）：height 须为 auto 才按 align-self: stretch 拉伸（不定高外壳里的百分比高度不拉伸）；
     上下 −1px 外边距盖住外壳描边（0.5px 在 Chromium 计为 1px），点外壳上下边缘也落在控件上 */
  .input-shell :is(input, select) { align-self: stretch; height: auto; min-height: 0; margin-block: -1px; }
  .input-shell :is(input, select, textarea), :root .search-cap input { font-size: max(16px, 1rem); } /* :root 提高权重，覆盖 app.css 中地图搜索的 15px */
  .input-shell input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
  /* 按钮与单选胶囊至少 44px 高（布局与断点「密度与触控」）；:root 提高权重，覆盖各自的 36／32px 定高 */
  :root :is(.btn:not(.btn-icon), .chip) { height: auto; min-height: 44px; }
  :root .btn-lg:not(.btn-icon) { min-height: 46px; } /* 登录等大号主按钮保持 46px */
  .switch::before { content: ""; position: absolute; inset: -8px -4px; pointer-events: auto; } /* 外观 46×28，命中 54×44；透明伪元素承担命中，需显式恢复指针事件 */
  .switch.sm::before { inset: -11px -4px; }
  .input-shell input[type="number"]::-webkit-inner-spin-button, .input-shell input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
}
.field-error { font-size: 0.71875rem; color: var(--danger-ink); } /* 11.5px（第 4.8 节，附录 A 无对应令牌），用 rem 以随字号放大 */
.field-help { font-size: var(--text-label); color: var(--muted); }
.field-help.is-warn { color: var(--warn-ink); }
.t-subhead { font-size: var(--text-card-title); line-height: 1.35; font-weight: 600; margin: 0; } /* 卡片标题级（字体「字阶」）；优先级高于零优先级的标题字重规则 */
/* 选择框统一外观：去掉原生箭头，外壳右侧放单线箭头（不拦截点击） */
select.select { -webkit-appearance: none; appearance: none; padding-right: 22px; cursor: pointer; }
.input-shell:has(> select.select) { position: relative; }
select.select + .i { position: absolute; right: 12px; pointer-events: none; color: var(--fg-2); }

/* 分段控件 */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--fill-soft); }
.seg button {
  min-width: 44px; height: 30px; padding: 0 14px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--fg-2); font-size: var(--text-table); font-weight: 500;
  transition: background var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
@media (hover: hover) { .seg button:hover { background: var(--glass-bg); } }
.seg button:active { transform: scale(.95); transition-duration: 0ms; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: var(--glass-shadow-sm); }
.seg button:focus-visible { box-shadow: var(--focus-ring); }
/* 精细指针桌面底槽 36px 与同排控件齐平；触控尺寸查询下每段至少 44px 高（布局与断点「密度与触控」） */
@media (pointer: coarse) and (max-width: 1023px), (max-width: 640px) { .seg button { height: auto; min-height: 44px; } }

/* 开关 */
.switch { position: relative; flex: none; width: 46px; height: 28px; border: 0; padding: 0; border-radius: var(--radius-pill); background: var(--border); transition: background var(--motion-fast) var(--ease-standard); }
/* 关闭态的对比环：增强对比度下以元素自身的 inset 描边表达（不占用触控查询里承担命中区的 ::before），跟随圆角，圆弧处同样闭合 */
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) { .switch:not([aria-checked="true"]) { box-shadow: inset 0 0 0 1px var(--fg-2); } }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--bg); box-shadow: var(--glass-shadow-sm); transition: transform var(--motion-fast) var(--ease-standard), width var(--motion-fast) var(--ease-standard); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch.sm { width: 38px; height: 23px; }
.switch.sm::after { width: 19px; height: 19px; }
.switch.sm[aria-checked="true"]::after { transform: translateX(15px); }
/* 按下时滑块向内拉长，松开后滑到新位置 */
.switch:not(:disabled):active::after { width: 28px; transition-duration: 0ms; }
.switch[aria-checked="true"]:not(:disabled):active::after { transform: translateX(14px); }
.switch.sm:not(:disabled):active::after { width: 23px; }
.switch.sm[aria-checked="true"]:not(:disabled):active::after { transform: translateX(11px); }
.switch:disabled { opacity: .45; }

/* 单选胶囊 */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 0.5px solid var(--border); background: var(--bg); color: var(--fg-2); font-size: var(--text-table);
  transition: background var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
@media (hover: hover) { .chip:hover { background: var(--fill-soft); } }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chip .x { width: 20px; height: 20px; margin-right: -6px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; padding: 0; background: transparent; color: inherit; transition: background var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }
@media (hover: hover) { .chip .x:hover { background: var(--fill-soft); } }
button.chip:not(:disabled):active, a.chip:active { transform: scale(.97); transition-duration: 0ms; }
.chip .x:active { background: var(--fill-soft); transform: scale(.9); transition-duration: 0ms; }

/* 年度选择器 */
.year { position: relative; }
.year > button { height: 44px; padding: 0 14px 0 16px; border-radius: var(--radius-pill); border: 0.5px solid var(--border); background: var(--bg); display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
@media (hover: hover) { .year > button:hover { background: var(--fill-soft); } }
.menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 140px; max-height: 232px; overflow: auto; padding: 6px; }
.menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; font-family: var(--font-mono); }
@media (hover: hover) { .menu button:hover { background: var(--fg-soft); } }
.year > button, .menu button { transition: background var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }
.year > button:active, .menu button:active { background: var(--fill-soft); transform: scale(.98); transition-duration: 0ms; }
.annual-year > button { min-height: 44px; height: auto; color: var(--fg); font-size: var(--text-table); padding-block: 10px; }
.year-menu { left: auto; right: 0; width: max-content; min-width: 156px; border-radius: var(--radius-md); transform-origin: top right; overscroll-behavior: contain; }
.year-menu[hidden] { display: none; }
.year-menu button { min-height: 44px; height: auto; gap: 24px; padding-block: 10px; color: var(--fg); font-size: var(--text-table); }
.year-menu button .i { visibility: hidden; }
.year-menu [aria-selected="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.year-menu [aria-selected="true"] .i { visibility: visible; }
.annual-year > button:focus-visible, .year-menu button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.year-menu button:focus-visible { position: relative; z-index: 1; }

/* ── 标签 ── */
.tag { display: inline-flex; align-items: center; gap: 4px; height: max(22px, 1.8em); padding: 0 8px; border-radius: var(--radius-pill); font-size: var(--text-label); font-weight: 500; line-height: 1; white-space: nowrap; width: max-content; background: var(--fill-soft); color: var(--fg-2); }
.tag .i { width: 13px; height: 13px; }
.tag.success { background: var(--success-soft); color: var(--success-ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag.danger { background: var(--danger-soft); color: var(--danger-ink); }
.tag.accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag.plan { background: transparent; box-shadow: inset 0 0 0 1px var(--map-plan); color: var(--map-plan-ink); }
.tag.ggs { background: var(--map-ggs-soft); color: var(--map-ggs-ink); }
.tag.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border); color: var(--fg-2); }
.tag.t-none { background: var(--map-tier-none-soft); color: var(--map-tier-none-ink); }
.tag.t-acquiring { background: var(--map-tier-acquiring-soft); color: var(--map-tier-acquiring-ink); }
.tag.t-acquired { background: var(--map-tier-acquired-soft); color: var(--map-tier-acquired-ink); }
.tag.t-converting { background: var(--map-tier-converting-soft); color: var(--map-tier-converting-ink); }
.tag.t-converted { background: var(--map-tier-converted-soft); color: var(--map-tier-converted-ink); }
.tag.t-reserving { background: var(--map-tier-reserving-soft); color: var(--map-tier-reserving-ink); }
.tag.t-reserved { background: var(--map-tier-reserved-soft); color: var(--map-tier-reserved-ink); }
.tag.t-meeting { background: var(--map-tier-meeting-soft); color: var(--map-tier-meeting-ink); }
.tag.t-supplying { background: var(--map-tier-supplying-soft); color: var(--map-tier-supplying-ink); }
.tag.t-supplied { background: var(--map-tier-supplied-soft); color: var(--map-tier-supplied-ink); }
.tag.t-supervised { background: var(--map-tier-supervised-soft); color: var(--map-tier-supervised-ink); }
.tag.t-recalling { background: var(--map-tier-recalling-soft); color: var(--map-tier-recalling-ink); }

/* 图例、横条与标签共用分类色；纹理只出现在独立色块上。 */
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 3px; flex: none; }
.tag .sw { width: 10px; height: 10px; border-radius: 50%; }
.f-none { background: var(--map-tier-none-fill); border: 1.5px solid var(--map-tier-none-line); }
.f-acquiring { background: var(--map-tier-acquiring-fill); border: 1.5px solid var(--map-tier-acquiring-line); }
.f-acquired { background: var(--map-tier-acquired-fill); border: 1.5px solid var(--map-tier-acquired-line); }
.f-converting { background: var(--map-tier-converting-fill); border: 1.5px solid var(--map-tier-converting-line); }
.f-converted { background: var(--map-tier-converted-fill); border: 1.5px solid var(--map-tier-converted-line); }
.f-reserving { background: var(--map-tier-reserving-fill); border: 1.5px solid var(--map-tier-reserving-line); }
.f-reserved { background: var(--map-tier-reserved-fill); border: 1.5px solid var(--map-tier-reserved-line); }
.f-meeting { background: var(--map-tier-meeting-fill); border: 1.5px solid var(--map-tier-meeting-line); }
.f-supplying { background: var(--map-tier-supplying-fill); border: 1.5px solid var(--map-tier-supplying-line); }
.f-supplied { background: var(--map-tier-supplied-fill); border: 1.5px solid var(--map-tier-supplied-line); }
.f-supervised { background: var(--map-tier-supervised-fill); border: 1.5px solid var(--map-tier-supervised-line); }
.f-recalling { background: var(--map-tier-recalling-fill); border: 1.5px solid var(--map-tier-recalling-line); }
.f-none { background: repeating-linear-gradient(45deg, var(--bg) 0 1.4px, transparent 1.4px 8px), var(--map-tier-none); }
.f-acquiring, .f-converting, .f-reserving, .f-supplying { border-style: dashed; }
.f-recalling, .p-recalling { background: repeating-linear-gradient(135deg, var(--fg-2) 0 1px, transparent 1px 6px), var(--fill-soft); }
.f-supervised { background: var(--map-tier-supervised-fill); position: relative; }
.sw.f-supervised::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--map-tier-supervised-line); border-radius: 1px 1px 4px 4px; }

/* ── 卡片与表格 ── */
.card { background: var(--dashboard-card-bg); border-radius: var(--radius-lg); box-shadow: var(--elev-ring); padding: 20px; min-width: 0; }
.card-plain { background: var(--bg); }
.table-wrap { position: relative; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--elev-ring); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg)); opacity: 0; transition: opacity var(--motion-fast) var(--ease-standard); }
.table-wrap.has-more::after { opacity: 1; } /* 仅在右侧还有列时显示（data.js 测量） */
.table-scroll:focus-visible { box-shadow: none; outline: none; }
.table-wrap:has(> .table-scroll:focus-visible) { box-shadow: var(--elev-ring), var(--focus-ring); } /* 外层不裁切焦点环 */
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-table); }
.tbl th { height: 38px; padding: 0 14px; text-align: left; font-size: var(--text-label); font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 0.5px solid var(--border); }
.tbl td { height: 40px; padding: 6px 14px; border-bottom: 0.5px solid var(--border-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.clickable { cursor: pointer; }
@media (hover: hover) { .tbl tbody tr:hover td { background: var(--fg-soft); } }
.tbl tbody tr.clickable td { transition: background var(--motion-fast) var(--ease-standard); }
.tbl tbody tr[aria-current="true"] td, .tbl tbody tr.clickable:active td { background: var(--fill-accent-soft); }
.tbl tbody tr.clickable:active td { transition-duration: 0ms; }
.tbl tbody tr.clickable:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }
.tbl .n, .tbl th.n { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table-scroll .t-num { white-space: nowrap; } /* 可横向滚动的表格里，宗地编号不在连字符处折行 */
.nobr { white-space: nowrap; } /* 整体不折行：日期（data.js 的 nobrDate 包裹）、表格中的宗地名称、UTF-8 等短词 */
.tbl th .sort { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: inherit; font: inherit; padding: 4px; border-radius: var(--radius-sm); }
.tbl .sub { display: block; color: var(--muted); font-size: var(--text-label); font-family: var(--font-mono); }
.tbl .table-text { display: block; min-width: 4.5em; } /* 名称、组团与片区保留可读列宽，由表格容器横向滚动 */
.tbl.is-refreshing tbody { opacity: .55; }
.refresh-line { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: var(--text-label); color: var(--fg-2); border-bottom: 0.5px solid var(--border-soft); }

.pager { display: flex; align-items: center; gap: 4px; }
.pager button { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; font-family: var(--font-mono); font-size: var(--text-label); color: var(--fg-2); }
@media (hover: hover) { .pager button:hover:not([aria-current]) { background: var(--fg-soft); } }
.pager button:not(.btn):not(:disabled):active { background: var(--fill-soft); }
.pager button[aria-current="page"] { background: var(--accent); color: var(--accent-on); }
.pager .gap { width: 22px; text-align: center; color: var(--muted); }
@media (pointer: coarse) and (max-width: 1023px), (max-width: 640px) { .pager button { min-width: 44px; height: 44px; } } /* 与规范的触控命中查询一致 */

/* 详情字段 */
.dt-row { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 3px 0; font-size: var(--text-table); } /* 值列不足 8em 时（200% 字号）换到标签下方，不再挤成窄列 */
.dt-row > :first-child { flex: 0 0 5.5rem; }
.dt-row > :last-child { flex: 1 1 8em; min-width: 0; overflow-wrap: anywhere; } /* 只有一项时（导入预览明细）占满整行 */
.dt-row dt { color: var(--fg-2); }
.dt-row a { word-break: keep-all; } /* 文号在括号处换行，不把「号」单独折到下一行 */

/* ── 浮层 ── */
.scrim-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; padding: 0; }
.modal.narrow { width: min(420px, 100%); }
.modal header, .modal footer { display: flex; align-items: center; gap: var(--space-2); padding: 18px 22px; }
.modal header { justify-content: space-between; padding-right: 12px; }
.modal footer { justify-content: flex-end; padding-top: 6px; }
.modal .body { padding: 0 22px 8px; overflow: auto; }
.toast-host { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: var(--radius-pill); font-size: var(--text-table); font-weight: 500; pointer-events: auto; }
.toast .ok { color: var(--success-ink); } .toast .wn { color: var(--warn-ink); } .toast .er { color: var(--danger-ink); }
.empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; text-align: center; font-size: var(--text-table); color: var(--muted); }
.empty .i { width: 28px; height: 28px; color: var(--meta); }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-md); font-size: var(--text-table); }
.notice.warn { background: var(--fill-warn-soft); color: var(--warn-ink); }
.notice.danger { background: var(--fill-danger-soft); color: var(--danger-ink); }
.notice.info { background: var(--fill-soft); color: var(--fg-2); }
.notice.ok { background: var(--fill-success-soft); color: var(--success-ink); }
.notice .i { margin-top: 1px; }

.skel { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--fill-soft), var(--border-soft), var(--fill-soft)) 0 0/200% 100%; animation: skel calc(var(--motion-base) * 6) linear infinite; } /* 加载指示的流光周期，由令牌推导 */
@keyframes skel { to { background-position: -200% 0; } }
/* 减少动态效果：骨架屏改为静态底色（形状与动效「减少动态效果」） */
@media (prefers-reduced-motion: reduce) { .skel { animation: none; background-image: none; background-color: var(--fill-soft); } }
html.sim-reduce-motion .skel { animation: none; background-image: none; background-color: var(--fill-soft); }

/* 折叠摘要：隐藏原生标记，统一单线 chevron（右向；展开 90°，--motion-base），命中高 44（组件「图标」「表单」）。
   与 icons.mjs 的 right 同构：24 viewBox、1.6 描边、圆角端点，用 mask 取 currentColor，无填充 */
summary { display: flex; align-items: center; gap: 6px; min-height: 44px; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--motion-base) var(--ease-standard); }
details[open] > summary::after { transform: rotate(90deg); }
summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
/* 按下即时改变底色（形状与动效「按压与悬停」）；减少动态效果只保留底色 */
summary { transition: background var(--motion-fast) var(--ease-standard); }
summary:active { background: var(--fill-soft); transition-duration: 0ms; }
@media (hover: hover) { summary:hover { background: var(--fill-soft); } }

/* 入退场 */
@keyframes in-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes in-right { from { opacity: 0; transform: translateX(24px); } }
@keyframes in-fade { from { opacity: 0; } }
@keyframes in-insp { from { opacity: 0; transform: translateY(4px); } }
.anim-modal { animation: in-up var(--motion-base) var(--ease-standard); }
.anim-drawer { animation: in-right var(--motion-base) var(--ease-standard); }
.anim-fade { animation: in-fade var(--motion-base) var(--ease-standard); }
.anim-insp { animation: in-insp var(--motion-fast) var(--ease-standard); }

/* ── 原型演示控制条（产品界面之外） ── */
.demo-bar { position: fixed; z-index: 200; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: calc(100vw - 28px); padding: 8px 10px; border: 1.5px dashed var(--meta); border-radius: var(--radius-md); background: var(--bg); color: var(--fg-2); font-size: var(--text-label); }
.demo-bar b { font-weight: 600; color: var(--fg); }
.demo-bar select { height: 32px; border-radius: var(--radius-sm); border: 0.5px solid var(--border); background: var(--bg); padding: 0 6px; font-size: var(--text-label); }
.demo-bar label { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.demo-bar .toggle-demo { border: 0; background: var(--fill-soft); border-radius: var(--radius-sm); height: 32px; padding: 0 8px; font-size: var(--text-label); }
/* 演示条是原型外壳，不属于产品界面：固定字号，不随 200% 文字放大 */
.demo-bar, .demo-bar select, .demo-bar .toggle-demo { font-size: 12px; }
.demo-bar .demo-note { display: none; color: var(--fg-2); }
html.is-login .demo-bar .demo-note { display: inline; } /* 演示账号只在登录界面出现，属原型外壳 */

/* ── 显示偏好：媒体查询 + 模拟类 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  /* .btn 的按下缩放为 :root .btn:active（见按钮一节），这里同优先级、声明在后才能取消 */
  :root .btn:active, .seg button:active, button.chip:active, a.chip:active, .chip .x:active, .year > button:active, .menu button:active { transform: none; }
  summary::after { transition: none; }
}
html.sim-reduce-motion *, html.sim-reduce-motion *::before, html.sim-reduce-motion *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
html.sim-reduce-motion :is(.btn, .seg button, button.chip, a.chip, .chip .x, .year > button, .menu button):active { transform: none; }
html.sim-reduce-motion summary::after { transition: none; }
@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
  summary::after { background: none; } /* 不支持掩膜时不画占位，避免出现实心方块；原生标记已隐藏，折叠由 details 与测试覆盖 */
}
html.sim-reduce-transparency .glass, html.sim-reduce-transparency .glass-strong { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.sim-reduce-transparency .scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* 增强对比度：控件边界 ≥3:1（可访问性；玻璃材质「降级」的实底、深文字、明确描边）。
   一律用 box-shadow 描边，不改 border-width，避免尺寸与其他布局位移；次按钮的玻璃描边仍由 .glass 规则改为 1px --fg-2 */
html.sim-contrast-more .glass, html.sim-contrast-more .glass-strong { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--fg-2); }
html.sim-contrast-more :focus-visible { outline: 2px solid var(--accent-active); outline-offset: 2px; }
html.sim-contrast-more .card, html.sim-contrast-more .table-wrap { box-shadow: 0 0 0 1px var(--fg-2); }
html.sim-contrast-more :is(.input-shell, .chip) { box-shadow: inset 0 0 0 1px var(--fg-2); }
/* 次按钮（非实底）按体系补明确描边；主按钮、危险按钮的实底本身已过 3:1，不改；
   玻璃按钮（地图筛选、手绘新增）的描边已由 .glass 降级改为 1px --fg-2，不再叠加内描边，计算值与改动前一致（AD-18） */
html.sim-contrast-more .btn:not(.btn-primary, .btn-danger, .btn-text, .glass, .glass-strong) { box-shadow: inset 0 0 0 1px var(--fg-2); }
html.sim-contrast-more .tag { box-shadow: inset 0 0 0 1px var(--fg-2); }
html.sim-contrast-more .tbl :is(td, th) { border-bottom-color: var(--meta); }
html.sim-contrast-more .panel { box-shadow: 0 0 0 1px var(--fg-2); }
html.sim-contrast-more .switch:not([aria-checked="true"]), html.sim-reduce-transparency .switch:not([aria-checked="true"]) { box-shadow: inset 0 0 0 1px var(--fg-2); }
@media (prefers-contrast: more) { .card, .table-wrap { box-shadow: 0 0 0 1px var(--fg-2); } }
@media (prefers-contrast: more) {
  .input-shell, .chip { box-shadow: inset 0 0 0 1px var(--fg-2); }
  .btn:not(.btn-primary, .btn-danger, .btn-text, .glass, .glass-strong) { box-shadow: inset 0 0 0 1px var(--fg-2); }
  .tag, .tag.outline { box-shadow: inset 0 0 0 1px var(--fg-2); } /* .tag.outline 自带 --border 内描边、优先级高于 .tag，须单列 */
  :root .tbl :is(td, th) { border-bottom-color: var(--meta); }
  :root .panel { box-shadow: 0 0 0 1px var(--fg-2); }
  .switch:not([aria-checked="true"]) { box-shadow: inset 0 0 0 1px var(--fg-2); }
}
/* 分段控件：增强对比时底槽与选中项加明确描边（组件「开关与选择器」） */
html.sim-contrast-more .seg { box-shadow: inset 0 0 0 1px var(--fg-2); }
html.sim-contrast-more .seg button:is([aria-pressed="true"], [aria-selected="true"]), html.sim-contrast-more .seg-radio label:has(input:checked) { box-shadow: inset 0 0 0 1px var(--fg); }
@media (prefers-contrast: more) {
  .seg { box-shadow: inset 0 0 0 1px var(--fg-2); }
  .seg button:is([aria-pressed="true"], [aria-selected="true"]), :root .seg-radio label:has(input:checked) { box-shadow: inset 0 0 0 1px var(--fg); }
}

/* 原型控制条的大字号验收开关，不改变产品默认字号。 */
html.sim-large-type { font-size: 200%; }
