/* 演流 YanLiu · Web 前端样式（设计变量集中在这里，等价于 CSS 主题层） */
:root {
  --brand: #0e6b4f;
  --brand-2: #12805e;
  --brand-weak: #e8f3ee;
  --ink: #16211c;
  --ink-2: #4a5b53;
  --ink-3: #7d8c85;
  --line: #d7e4dd;
  --bg: #f3f7f5;
  --card: #ffffff;
  --warn: #b4590a;
  --err: #b3261e;
  --radius: 10px;
  --gap: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 32, .06), 0 8px 24px rgba(20, 40, 32, .05);
  --label-w: 180px;
  --ctl-h: 32px;          /* 按钮 / 输入框 / 下拉 的统一高度（同行必须一致） */
  --rail-w: 30px;          /* 右侧运行日志把手宽度 */
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%;
  font: 14px/1.55 "Microsoft YaHei UI", "微软雅黑", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ---------- 布局：左导航 + 右内容 + 底部日志 ---------- */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  grid-template-rows: 56px minmax(0, 1fr);
  grid-template-areas: "brand topbar" "nav main";
  height: 100vh;
  padding-right: var(--rail-w);        /* 给右侧日志把手留位置 */
  transition: padding-right .18s ease;
}
body.log-open .shell { padding-right: 420px; }

.brand {
  grid-area: brand;
  display: flex; align-items: center; gap: 9px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  text-decoration: none;                 /* 整个品牌区是回首页的链接 */
  transition: filter .18s ease;
}
.brand:hover { filter: brightness(1.08); }
.brand:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -3px; }
.brand-logo {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(3, 32, 22, .28);
}
.brand-logo img { height: 29px; width: auto; display: block; }
.brand-txt .brand-ver {
  font-style: normal; margin-left: 7px; padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px;
  font-size: 10px; letter-spacing: .3px; color: rgba(255, 255, 255, .92);
  vertical-align: 1px; white-space: nowrap;
}
.brand-logo .blmark { height: 29px; width: auto; display: block; overflow: visible; }

/* 侧栏 logo 保持静态：不清描边、不做循环，源点/光晕直接给最终状态 */
.brand-logo .blmark .src { opacity: 1; }
/* 源点常驻：圆点自带微光（drop-shadow），再配一圈软光晕脉冲，与欢迎层同一套表现 */
.brand-logo .blmark .src {
  opacity: 1;
  filter: drop-shadow(0 0 1.6px rgba(245, 166, 35, .85));   /* 圆点常驻微光：不动的“亮着” */
}
.brand-logo .blmark .src, .brand-logo .blmark .pulse {
  transform-box: fill-box; transform-origin: center;
}
/* 与欢迎层同一套“软光晕扩散”：实心圆放大 + 淡出，而不是硬边描边环。
   参数对齐 splash 的 bl-halo（起点 .55 / 2.6 s / 同缓动），只在倍数上补偿：
   29 px 标记里圆点只有 1.85 px 半径，按 splash 的 2.2× 只有 4 px，屏幕上看不出来。 */
.brand-logo .blmark .pulse {
  fill: #f5a623; stroke: none;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: bl-halo-brand 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
}
/* 第二道环是上一版为“看得见”加的；改成软光晕后不需要第二道，留元素不显示 */
.brand-logo .blmark .pulse2 { display: none; }
@keyframes bl-halo-brand {
  0%   { opacity: .6;  transform: scale(1); }
  70%  { opacity: 0;   transform: scale(3.8); }
  100% { opacity: 0;   transform: scale(3.8); }
}

/* ---------- 首屏欢迎动画（全屏 → 飞向左上角） ---------- */
.splash {
  position: fixed; inset: 0; z-index: 6000; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; opacity: 1; transition: opacity .65s ease;
}
.splash::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 110% at 50% 0%, #177053 0%, #0e5640 55%, #0a3f30 100%);
  transition: opacity .75s ease;
}
#splash .sp-box {
  display: flex; align-items: center; gap: 20px;
}
#splash .blmark { height: 92px; width: auto; display: block; overflow: visible; }
/* 三根横杆串行起笔，斜杆接在第三根快收笔时起笔（原来与第三根重叠） */
#splash .blmark .s1, #splash .blmark .s2, #splash .blmark .s3, #splash .blmark .stem {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: bl-draw .62s cubic-bezier(.25, .7, .3, 1) forwards;
}
#splash .blmark .s1 { animation-delay: .10s; }
#splash .blmark .s2 { animation-delay: .62s; }
#splash .blmark .s3 { animation-delay: 1.14s; }
#splash .blmark .stem { animation-delay: 1.62s; animation-duration: 1.05s; }
#splash .blmark .src, #splash .blmark .pulse { transform-box: fill-box; transform-origin: center; }
#splash .blmark .src { opacity: 0; animation: bl-pop .5s 2.62s cubic-bezier(.2, .9, .3, 1.5) forwards; }
#splash .blmark .pulse { opacity: 0; animation: bl-halo 2.6s 3.1s ease-out infinite; }

/* 笔尖光点：跟着描线头走一遍。斜杆是直线，直接用用户单位 translate 关键帧
   （不用 offset-path：它在 SVG 里不按 viewBox 用户坐标映射，会跑偏） */
#splash .blmark .tip {
  opacity: 0;
  transform-box: view-box;
  animation: bl-tip 1.05s 1.62s cubic-bezier(.25, .7, .3, 1) 1 both;   /* 缓动与斜杆描线一致，光点才跟得住笔头 */
}
@keyframes bl-tip {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translate(-74.7px, 129.5px); opacity: 0; }
}

#splash .sp-title { display: flex; align-items: center; gap: 10px; }
#splash .sp-txt b {
  display: inline-block; font-size: 32px; font-weight: 700; letter-spacing: .6px;
  animation: bl-rise .6s .90s both;
}
#splash .sp-txt i {
  display: block; margin-top: 6px; font-size: 14px; letter-spacing: .5px; color: #cfe9df;
  animation: bl-rise-dim .6s 1.15s both;
}
#splash .sp-tag { font-size: 12.5px; color: #b7d9cc; animation: bl-rise-dim .6s 1.75s both; }
#splash .sp-org {
  font-size: 13px; color: #dbeade; letter-spacing: .6px;
  animation: bl-rise-dim .6s 1.95s both;
}
/* 版本胶囊：紧跟在标题右侧，与标题同一基线居中 */
#splash .sp-ver {
  font-style: normal; font-size: 12px; line-height: 1; color: #cfe9df;
  letter-spacing: .4px; padding: 3px 9px;
  border: 1px solid rgba(207, 233, 223, .45); border-radius: 999px;
  white-space: nowrap; flex: none;
  animation: bl-rise-dim .6s 1.0s both;
}
#splash .sp-skip {
  position: absolute; bottom: 26px; z-index: 1; font-size: 12px; color: #9dc4b6;
  animation: bl-rise-dim .6s 2.6s both;
}
#splash.sp-gone { opacity: 0; pointer-events: none; }
html.splashing body { overflow: hidden; }

/* ---------- 欢迎层加料：源点波纹 / 上升气流 / 背景等值线呼吸 + 开场扫光 ---------- */
#splash::after {          /* 开场一道斜扫光，只跑一次 */
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 26%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .11) 50%, transparent 100%);
  transform: skewX(-14deg) translateX(-140%);
  animation: bl-sweep 2.5s 1.6s cubic-bezier(.35, .1, .25, 1) 1 forwards;
  pointer-events: none;
}
#splash .blmark {
  animation: bl-mark-in .9s .05s cubic-bezier(.2, .8, .25, 1.04) both;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .28)) drop-shadow(0 0 22px rgba(110, 227, 182, .16));
}
#splash .blmark .ring {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: bl-ripple 3.2s cubic-bezier(.18, .7, .3, 1) 2.8s infinite;
}
#splash .blmark .r2 { animation-delay: 3.8s; }
#splash .blmark .r3 { animation-delay: 4.8s; }
#splash .blmark .plume {
  stroke-dasharray: 20 80; stroke-dashoffset: 100; opacity: 0;
  animation: bl-plume 2.6s 3.0s cubic-bezier(.4, .05, .5, .95) infinite;
}

/* 收尾（方案①）：源点发出两圈光波扫过画面 + 整屏轻微提亮；不位移、不铺白。
   位置与直径由 JS 按源点实测坐标算（.sp-wave 定位在源点圆心）。 */
.sp-wave {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px;
  border-radius: 50%; border: 2px solid rgba(226, 255, 245, .92);
  box-shadow: 0 0 24px rgba(170, 255, 226, .55), inset 0 0 20px rgba(170, 255, 226, .35);
  transform: translate(-50%, -50%) scale(.04); opacity: 0;
  pointer-events: none; z-index: 8; will-change: transform, opacity;
}
.sp-wave.go {
  animation: bl-wave .9s cubic-bezier(.2, .62, .3, 1) forwards;
}
.sp-wave.w2.go { animation-delay: .16s; }
@keyframes bl-wave {
  0%   { transform: translate(-50%, -50%) scale(.04); opacity: 0; }
  8%   { opacity: .95; }
  18%  { transform: translate(-50%, -50%) scale(.14); }   /* 先在圆点上停留一瞬 */
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 0; }
}
/* 起点火花：在源点上一闪，明确“两圈波是从这里发出的” */
.sp-spark {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px;
  border-radius: 50%; pointer-events: none; z-index: 8; opacity: 0;
  background: radial-gradient(circle, #ffffff 0%, #ffe9bd 40%, rgba(255, 214, 140, 0) 74%);
  transform: translate(-50%, -50%) scale(.45);
}
.sp-spark.go { animation: bl-spark .5s ease-out forwards; }
@keyframes bl-spark {
  0%   { opacity: 1;   transform: translate(-50%, -50%) scale(.45); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.6); }
}
/* 整屏轻微提亮（曝光感），不做大面积铺白 */
.sp-flash {
  position: absolute; inset: 0; background: #fff; opacity: 0;
  pointer-events: none; z-index: 7;
}
.sp-flash.go { animation: bl-flash .92s ease-out forwards; }
@keyframes bl-flash {
  0%   { opacity: 0; }
  22%  { opacity: .10; }
  100% { opacity: 0; }
}

@keyframes bl-breathe {
  0%, 100% { transform: scale(1);    opacity: .45; }
  50%      { transform: scale(1.06); opacity: .72; }
}
@keyframes bl-sweep {
  from { transform: skewX(-14deg) translateX(-140%); opacity: 0; }
  20%  { opacity: 1; }
  to   { transform: skewX(-14deg) translateX(320%); opacity: 0; }
}
@keyframes bl-mark-in {
  from { transform: scale(.9); opacity: .001; }
  to   { transform: none; opacity: 1; }
}
@keyframes bl-ripple {
  0%   { opacity: .7;  transform: scale(.5); }
  60%  { opacity: .16; transform: scale(2.9); }
  100% { opacity: 0;   transform: scale(3.3); }
}
@keyframes bl-plume {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  15%  { opacity: .9; }
  82%  { opacity: .9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}


@keyframes bl-draw { to { stroke-dashoffset: 0; } }
@keyframes bl-pop {
  from { opacity: 0; transform: scale(.25); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bl-halo {
  0% { opacity: .5; transform: scale(1); }
  70% { opacity: 0; transform: scale(2.2); }
  100% { opacity: 0; transform: scale(2.2); }
}
@keyframes bl-rise {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
@keyframes bl-rise-dim {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: .76; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #splash .blmark .s1, #splash .blmark .s2, #splash .blmark .s3,
  #splash .blmark .stem { animation: none !important; stroke-dashoffset: 0; }
  #splash .blmark .src { animation: none !important; opacity: 1; transform: none; }
  #splash .blmark .pulse { animation: none !important; opacity: 0; }
  #splash .blmark .ring, #splash .blmark .plume, #splash .blmark .tip { animation: none !important; opacity: 0; }
  #splash .blmark { animation: none !important; }
  .brand-logo .blmark .pulse,
  .brand-logo .blmark .pulse2 { animation: none !important; opacity: 0; }
  .sp-spark, .sp-wave, .sp-flash { display: none; }
  #splash::after { display: none; }
}
.brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-txt b { font-size: 15px; letter-spacing: .3px; }
.brand-txt .brand-line { display: flex; align-items: center; min-width: 0; }
.brand-txt i {
  font-style: normal; font-size: 10.5px; opacity: .76;
  margin-top: 4px; letter-spacing: .2px; white-space: nowrap;
}

.topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar label { color: var(--ink-3); font-size: 12px; }

/* 导航 */
.navver {
  position: sticky; bottom: -20px;         /* 导航可滚动，版本号贴着底部常显 */
  margin: 16px -8px -20px; padding: 8px 14px 10px;
  border-top: 1px dashed var(--line); background: var(--card);
  font-size: 11.5px; letter-spacing: .4px; color: var(--ink-3, #8a9a94);
}
.nav {
  grid-area: nav;
  background: var(--card);
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 10px 8px 20px;
}
.nav h4 {
  margin: 12px 10px 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-3); text-transform: uppercase;
}
.nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; margin: 1px 0;
  border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font-size: 13px;
}
.nav a:hover { background: var(--brand-weak); color: var(--brand); }
.nav a.active { background: var(--brand); color: #fff; font-weight: 600; }
.nav a.sub { padding-left: 26px; font-size: 12.5px; }
.nav .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.nav .dot.ok { background: var(--brand-2); }

/* 主内容 */
.main {
  grid-area: main;
  overflow: auto;
  padding: 18px 22px 28px;
}
h2.page {
  margin: 2px 0 14px; font-size: 17px; font-weight: 700; color: var(--ink);
}
h2.page small { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 8px; }

/* 卡片（= 原来的“区块”） */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
  overflow: hidden;
}
.card > header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#fbfdfc, #f5f9f7);
}
.card > header h3 {
  margin: 0; font-size: 13.5px; font-weight: 700; color: var(--brand);
}
.card > header .tag {
  font-size: 11px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.card > .body { padding: 14px 16px; }

/* 表单：标签定宽 + 控件对齐（相当于表格化栅格） */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
}
.field {
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr);
  align-items: center; gap: 8px;
}
/* 控件与其单位放同一个格（.ctl）里，单位紧贴输入框；
   以前单位被当成第三个格项，宽屏下会被甩到卡弧右边去 */
.field > .ctl {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.field > .ctl > input, .field > .ctl > select, .field > .ctl > textarea {
  flex: 1 1 auto; min-width: 0;
}
.field > .ctl > .unit, .field > .ctl > .seg { flex: none; }
.field > .ctl > .unit { margin-left: 0; }
.field > label {
  color: var(--ink-2); font-size: 13px; text-align: right;
  /* 标签一律单行（右对齐）：换行会让同一行的输入框上下错位。
     宽度不够时好切省略号，而不是把控件挤到第二行 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field.wide { grid-column: 1 / -1; }
/* 数值框定宽：flex 子项光写 max-width 会被压扁，必须同时给 width */
.field > .ctl > input.wnum { flex: 0 0 auto; width: 150px; max-width: 100%; }
/* 气象廓线基准高程：输入框常显（在 #scr_pf 里），用 AERMAP 源高程时只读灰显 */
#scr_pf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
#scr_pf > input.wnum { flex: 0 0 auto; width: 150px; max-width: 100%; }
#scr_pf > input.wfrozen {
  background: #f2f5f3; color: #8a9a92; cursor: default;
  border-color: #e3e9e5; font-variant-numeric: tabular-nums;
}
#scr_pf > input.wfrozen::placeholder { color: #9fb0a7; }
#scr_pf > .hint { margin: 0; }
/* 开关型依赖项：条件未满足时灰化且不可交互（用 inert，不用 disabled，避开只读角色的置灰逻辑） */
[data-dis].dim > .field { opacity: .55; }
[data-dis].dim > .field > label { color: var(--ink-3); }
.hint { color: var(--ink-3); font-size: 12px; margin: 6px 0 0; }
.section {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 8px; color: var(--ink-3); font-size: 12px;
}
.section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section b { color: var(--brand); font-size: 12.5px; }

input[type=text], input[type=number], select {
  width: 100%; max-width: 340px;
  padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink); font: inherit;
}
input:focus, select:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(18, 128, 94, .12);
}
button {
  font: inherit; cursor: pointer;
  /* 与输入框、下拉同一高度：同行控件上下齐平，不靠 padding 凑 */
  height: var(--ctl-h); padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; white-space: nowrap;
  border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
button:hover { border-color: var(--brand-2); color: var(--brand); }
button.primary {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}
button.primary:hover { background: var(--brand-2); }
button:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--brand-weak); color: var(--brand); font-size: 12px;
}
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }

/* 日志：右侧把手 + 抽屉（点击展开） */
.lograil {
  position: fixed; right: 0; top: 56px; bottom: 0; width: var(--rail-w); z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 0; cursor: pointer; user-select: none;
  background: #12221b; color: #9fc3b2;
  border-left: 1px solid #0a130f;
}
.lograil:hover { background: #173024; color: #cfe6da; }
.lograil-txt {
  writing-mode: vertical-rl; letter-spacing: .18em; font-size: 12.5px;
}
.lograil-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5f8a76;
}
.lograil-dot.busy {
  background: #ffb347; box-shadow: 0 0 0 3px rgba(255, 179, 71, .18);
  animation: logbreath 1.7s ease-in-out infinite;
}
/* 呼吸：放大 + 光晕张开，运行中一眼能看到“还在跑” */
@keyframes logbreath {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 3px rgba(255, 179, 71, .20); }
  50%      { transform: scale(1.55); box-shadow: 0 0 0 9px rgba(255, 179, 71, .03); }
}
@media (prefers-reduced-motion: reduce) {
  .lograil-dot.busy { animation: none; }
}
.lograil-dot.err { background: #e2554c; }
body.log-open .lograil { display: none; }

.logdrawer {
  position: fixed; right: 0; top: 56px; bottom: 0; width: 420px; z-index: 31;
  display: grid; grid-template-rows: 34px minmax(0, 1fr) 28px;
  background: #0f1a15; color: #cfe6da; border-left: 1px solid #0a130f;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .18);
  transform: translateX(100%); transition: transform .18s ease;
  font: 12.5px/1.6 "Consolas", "等距更纱黑体 SC", monospace;
}
body.log-open .logdrawer { transform: none; }
.logdrawer header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 12px; background: #12221b; color: #9fc3b2; font-size: 12px;
}
.logdrawer header b { color: #cfe6da; }
.logdrawer header #logstat {
  font-size: 11.5px; color: #8fb3a2; padding: 1px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .06);
}

/* 深底胶囊按钮（清空 / 收起） */
.logdrawer header .pillbtn {
  height: 22px; padding: 0 11px; border-radius: 999px;
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  background: transparent; color: #cfe6da;
  font-size: 12px; line-height: 1; letter-spacing: .02em;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.logdrawer header .pillbtn:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}
.logdrawer header .pillbtn:active { background: rgba(255, 255, 255, .18); }
.logdrawer header .pillbtn:focus-visible {
  outline: none; box-shadow: 0 0 0 2px rgba(75, 191, 149, .55);
}
.logdrawer header .pillbtn.danger:hover {
  background: rgba(226, 85, 76, .18);
  border-color: rgba(226, 85, 76, .55);
  color: #ffb8b2;
}
.logdrawer header .check { color: #9fc3b2; }
.logdrawer header .check input { accent-color: #4bbf95; }
.logdrawer .lines { overflow: auto; padding: 6px 14px 10px; }
.logdrawer .lines div { white-space: pre-wrap; }
.logdrawer .t { color: #5f8a76; margin-right: 8px; }
.logdrawer .check { color: #9fc3b2; }
@media (max-width: 760px) {
  body.log-open .shell { padding-right: 0; }
  .logdrawer { width: 100vw; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}


/* ---------- 组件补充：表格 / 分段控件 / 污染物格 / 提示 ---------- */
.flex { flex: 1; }
.mono { font-family: "Consolas", "等距更纱黑体 SC", monospace; }
.hint { color: var(--ink-3); font-size: 12px; }
.empty { color: var(--ink-3); text-align: center; padding: 18px 0; font-size: 13px; }
.plain { margin: 6px 0 0 18px; color: var(--ink-2); line-height: 1.9; }

.card > footer {
  padding: 10px 16px; border-top: 1px solid var(--line);
  background: #fbfdfc; display: flex; align-items: center; gap: 10px;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 16px; }
.side { display: flex; flex-direction: column; gap: 8px; }
.side button { width: 100%; }

.tablewrap { border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  position: sticky; top: 0; z-index: 1;
  background: #f2f7f4; color: var(--ink-2);
  font-weight: 600; text-align: left;
  padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 9px 12px; border-bottom: 1px solid #eef3f0; }
table.tbl tbody tr { cursor: pointer; }
table.tbl tbody tr:hover { background: var(--brand-weak); }
table.tbl tbody tr.sel { background: #dff0e8; }
table.tbl tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
/* 只读结果表：行不可点，不要手型光标 */
table.tbl.ro tbody tr { cursor: default; }
table.tbl.ro td { white-space: nowrap; }
table.tbl.small td, table.tbl.small th { padding: 7px 10px; }

.chip {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: #eef3f0; color: var(--ink-3); font-size: 12px;
}
.chip.ok { background: var(--brand-weak); color: var(--brand); font-weight: 600; }

/* 分段控件（单位切换） */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button {
  /* 外壳自带 1px 边框：内高 30 → 整体 32，与同行按钮/输入框齐平 */
  border: 0; border-radius: 0; height: calc(var(--ctl-h) - 2px);
  padding: 0 12px; background: #fff;
  color: var(--ink-2); font-size: 12.5px;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--brand); color: #fff; font-weight: 600; }

/* 污染物格 */
.pollgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.poll {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fdfefd; cursor: pointer;
}
.poll.on { border-color: var(--brand-2); background: var(--brand-weak); }
.poll .pname { width: 62px; color: var(--ink-2); font-size: 13px; }
.poll .rate { max-width: 110px; }
/* 每个污染物后面的 1h 限值（标准库/覆盖值） */
.poll .lim { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.poll .lim.miss { color: var(--warn); opacity: .85; }
.poll input[type=number]:disabled { background: #f2f5f3; color: #9fb0a7; }

.unit { color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.field { grid-template-columns: var(--label-w) minmax(0, 1fr); }

/* 顶栏保存状态 */
.pill.busy { background: #fff4e5; color: var(--warn); }
.pill.ok { background: var(--brand-weak); color: var(--brand); }
.pill.err { background: #fdecea; color: var(--err); }

button.ghost { background: transparent; }
button.danger { color: var(--err); border-color: #f0d3d0; }
button.danger:hover { background: #fdecea; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: #12311f; color: #dff3e8; padding: 9px 16px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #4a1410; color: #ffd9d4; }


/* ---------- 结果页 ---------- */
.canvasbox {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 8px; display: flex; justify-content: center;
}
.canvasbox canvas { max-width: 100%; height: auto; }
.check.big { font-size: 13.5px; padding: 6px 0; }


/* 统一表单字号：输入框/文本域/下拉 一律 13px，与标签一致，避免浏览器默认 16px 偏大 */
input, textarea, select, button {
  font-family: inherit;
  font-size: 13px;
}
input[type="text"], input[type="number"], input[type="password"], input:not([type]), textarea {
  height: var(--ctl-h);
  line-height: 1.35;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
/* 下拉也统一到同一高度（原来靠 padding 凑出 32，字稍大就变高） */
select { height: var(--ctl-h); padding: 0 8px; }
textarea { height: auto; min-height: 56px; padding: 5px 8px; }
input:focus, textarea:focus {
  outline: 2px solid #bfe0d2;
  outline-offset: 1px;
}
.field label, label { font-size: 13px; }
.hint, .note { font-size: 12px; }

/* ---------- 登录 / 账号（服务端模式） ---------- */
.login-mask {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #1d4a38, #0b2419 70%);
}
.login-mask[hidden] { display: none; }
.login-mask .login-box { position: relative; }
.login-box {
  width: 340px; padding: 26px 26px 20px;
  background: var(--card); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; gap: 10px;
}
.login-box h3 { margin: 0 0 2px; font-size: 19px; color: var(--brand); letter-spacing: .5px; }
.login-box h3 b { font-weight: 700; }
/* 登录框头部：应用图标 + 名称（居中） */
.lg-head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; margin-bottom: 4px;
}
.lg-head .lg-logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(14, 107, 79, .28);
}
.lg-head .lg-logo img { height: 40px; width: auto; display: block; }
.lg-head h3 { margin: 2px 0 0; }
.lg-head .hint { margin: 0; }
.login-box label { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.login-box input { width: 100%; }
.login-box button { margin-top: 6px; height: 30px; }
.login-box .hint { margin: 0; line-height: 1.5; }
.login-box .lg-foot { margin-top: 2px; }
.lg-err { color: var(--err); font-size: 12px; min-height: 16px; }

.userchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--brand-weak); font-size: 12.5px; color: var(--ink-2);
}
.userchip i { font-style: normal; color: var(--brand); font-size: 11.5px; }
.progdir { display: inline-flex; align-items: center; gap: 10px; }
/* 小型下拉（预测选项里的 12 月季节、36 方位土地） */
select.mini { width: 64px; max-width: 64px; height: auto; padding: 2px 4px; font-size: 12px; }

/* 天地图 tk：独占一行且跟内容伸展（32 位字符串，不能挤在小框里） */
input.tdtkey {
  flex: 1 1 300px; min-width: 220px; max-width: 420px;
  font-family: Consolas, "等距更纱黑体 SC", monospace;
  letter-spacing: .02em;
}

/* ---------- 地图与拾取（Leaflet） ---------- */
.gmap {
  /* 高度随窗口走：下方卡片已压缩，地图拿满剩余高度（下限 520，避免太矮） */
  height: clamp(520px, calc(100vh - 300px), 900px);
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #e9eef0;
}
.gmap.picking .leaflet-container,
.gmap.picking { cursor: crosshair; }
.gmap .leaflet-container { font: inherit; }
.gmap .leaflet-popup-content { font-size: 12.5px; line-height: 1.5; }

/* 厂界顶点把手 */
.bndvtx {
  background: #fff; border: 2px solid #0e6b4f; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: grab;
}.bndvtx:active { cursor: grabbing; }

/* 厂界中心（面积加权质心）：十字靶心 */
.bndctr {
  position: relative; pointer-events: none;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95));
}
.bndctr::before, .bndctr::after {
  content: ""; position: absolute; background: #0e6b4f; border-radius: 1px;
}
.bndctr::before { left: 7px; top: 1px; width: 2px; height: 14px; }
.bndctr::after { top: 7px; left: 1px; height: 2px; width: 14px; }

/* 边中点把手：拖出即插新顶点 */
.bndmid {
  background: rgba(255, 255, 255, .85); border: 1.5px dashed #0e6b4f;
  border-radius: 50%; cursor: cell; opacity: .9;
}
.bndmid:hover { background: #fff; border-style: solid; opacity: 1; }

/* 矩形面源几何编辑器：角点 / 边中点 / 旋转手柄 */
.rchand {
  background: #fff; border: 2px solid #0e6b4f; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: nwse-resize;
}
/* 圆形面源：圆心（空心）/ 半径手柄（白底方点） */
.cctr {
  background: rgba(255, 255, 255, .9); border: 2px solid #0e6b4f; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); cursor: move;
}
.crad {
  background: #fff; border: 2px solid #0e6b4f; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: ew-resize;
}
/* 线源端点 / 敏感点 / 多边形缩放手柄 */
.lnend {
  background: #fff; border: 2px solid #0e6b4f; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: move;
}
.gtsens {
  background: #e2554c; border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 1.5px #7a1410, 0 1px 3px rgba(0, 0, 0, .3); cursor: grab;
}
.gtsens:active { cursor: grabbing; }
.pscl {
  background: #fff; border: 2px solid #0e6b4f; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: nwse-resize;
}
.pscl::after {
  content: "⤢"; display: block; color: #0e6b4f; font-size: 12px;
  line-height: 13px; text-align: center;
}
.redge {
  background: #0e6b4f; border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); cursor: grab;
}
.redge:active { cursor: grabbing; }
.rrot {
  background: #fff; border: 2px solid #0e6b4f; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4); cursor: alias;
}
.rrot::after {
  content: "↻"; display: block; color: #0e6b4f; font-size: 12px;
  line-height: 14px; text-align: center;
}
.rectbox {
  padding: 8px 10px; border: 1px dashed #b9d5c8; border-radius: 10px;
  background: #f6fbf8;
}
.rectbox[hidden] { display: none; }

/* 气象数据体检结果 */
.qarow { margin: 8px 0 2px; }
.qabox { margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.qabox.ok { background: #f2fbf6; border-color: #b7e2ca; }
.qabox.warn { background: #fffaf0; border-color: #e8d29a; }
.qabox.bad { background: #fff5f4; border-color: #e7b8b2; }
.qah { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.qah b { font-size: 13px; }
.qagrid {
  display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 10px;
  font-size: 12.5px;
}
.qagrid .qk { color: var(--ink-3, #7b8a86); white-space: nowrap; }
.qagrid .qv { color: var(--ink); font-variant-numeric: tabular-nums; }
.qasec { margin-top: 8px; }
.qasec > b { font-size: 12.5px; color: var(--ink-2); display: block; margin-bottom: 4px; }
.qaiss { margin: 8px 0 0 2px; padding-left: 16px; font-size: 12.5px; color: #a23b2e; }
.qadv { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.bndcenter {
  padding: 6px 10px; border: 1px dashed #b9d5c8; border-radius: 10px;
  background: #f6fbf8;
}

/* 地图页的编辑面板改为浮在地图上：不占布局高度，地图容器尺寸恒定，
   避免面板一弹出就把地图挤矮、Leaflet 缓存尺寸失效导致拾取坐标偏移 */
.gmapwrap { position: relative; }
.main { overflow-anchor: none; }
/* 地图页：压缩上下卡片/工具栏留白，把纵向空间让给地图 */
body[data-page="gis"] .card { padding: 12px 14px 10px; }
body[data-page="gis"] .card + .card { margin-top: 10px; }
body[data-page="gis"] .main-head { margin-bottom: 10px; }
body[data-page="gis"] .row { gap: 8px; }
html { scrollbar-gutter: stable; }   /* 滚动条出现/消失不再改变可用宽度 */   /* 避免 focus 引起的滚动锚定连坐 */
.gfloat {
  position: absolute; left: 12px; right: 12px; top: 12px; z-index: 700;
  display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100% - 24px); overflow: auto;
  pointer-events: none;                 /* 空白处不挡地图拖动 */
}
/* 面板内部：字段一行、操作一排靠右，按钮不会跑到两端 */
.gfloat .rectbox, .gfloat .bndcenter {
  flex-direction: column; align-items: stretch; gap: 8px;
}
.prow, .pacts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pacts { justify-content: flex-end; }
.pacts .hint { margin-right: auto; }        /* 状态文字占左侧，按钮成组在右 */
.pacts .primary, .pacts .ghost { flex: none; }
/* 面板右上角的关闭按钮 */
.pacts .px { padding: 0 8px; font-size: 15px; line-height: 28px; color: var(--ink-2); }

.gfloat > * {
  pointer-events: auto;
  opacity: .4;                          /* 平时半透明，少挡地图 */
  transition: opacity .18s ease;
}
.gfloat > *:hover,
.gfloat > *:focus-within {
  opacity: 1;                           /* 鼠标悬停或获得焦点时完全不透明 */
}
@media (prefers-reduced-motion: reduce) {
  .gfloat > * { transition: none; }
}
.gfloat .rectbox, .gfloat .bndcenter {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  backdrop-filter: blur(2px);
}
.bndcenter[hidden] { display: none; }
.bndcenter .bndsel { width: 152px; flex: none; }
.hint.strong { color: var(--brand); font-weight: 600; flex: none; }

/* 旧页面提示条（版本自检） */
.verbar {
  position: fixed; left: 50%; transform: translateX(-50%); top: 10px; z-index: 3000;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 10px;
  background: #fff8e1; border: 1px solid #e6c96a; color: #6b4b00; font-size: 12.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.verbar[hidden] { display: none; }

/* 观察员只读：提示条 + 表单灰显 */
.ronote {
  position: fixed; right: 16px; top: 10px; z-index: 3000;
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  background: #eef4f2; border: 1px solid #c9dcd5; color: #46645a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.ronote[hidden] { display: none; }
body.ro main input:disabled, body.ro main select:disabled,
body.ro main textarea:disabled { opacity: .78; cursor: not-allowed; }
.verbar b { font-weight: 600; }

.mt { margin-top: 12px; }
.mb6 { margin-bottom: 6px; }
.progdir label, .progdir button, .topbar > button { white-space: nowrap; }

.chip.bad { background: #fdecea; border-color: #f0d3d0; color: #b3261e; }
.mb10 { margin-bottom: 10px; }


/* 链接按钮（导出 CSV / Word 等）：与普通按钮同高同观感 */
a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--ctl-h); padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink-2);
  font-size: 13px; text-decoration: none; cursor: pointer;
}
a.btn:hover { border-color: var(--brand-2); color: var(--brand); text-decoration: none; }
a.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
a.btn.primary:hover { background: var(--brand-2); color: #fff; }
/* 链接版 ghost：与 button.ghost 同一套观感（表格里的「导出」这类下载链接用） */
a.btn.ghost { background: transparent; }
a.btn.ghost:hover { background: transparent; }

/* AERSCREEN 距离 - 浓度曲线 */
.scrchart {
  width: 100%; max-width: 980px; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  cursor: zoom-in;                    /* 点击看大图 */
}
.scrchart:hover { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-weak); }

/* 看图大图层（矢量 SVG） */
.figmodal {
  position: fixed; inset: 0; z-index: 5800; background: rgba(8, 26, 20, .74);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.figbox {
  background: #fff; border-radius: 12px; box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
  max-width: 98vw; max-height: 94vh; display: flex; flex-direction: column; overflow: hidden;
}
.fighead {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.fighead b { font-size: 14px; }
.figbody { overflow: auto; padding: 12px; background: #fff; }
.figbody svg { display: block; max-width: 100%; height: auto; }
.fighint { padding: 6px 14px 10px; }

/* 地表特征：12 扇区 × 4 季 × 3 参数
   选择器写成 table.tbl.sfctbl：得跟 table.tbl.small th 同级，靠位置靠后取胜 */
table.tbl.sfctbl th { padding: 6px 5px; }
table.tbl.sfctbl td { padding: 2px 2px; }
table.tbl.sfctbl td:first-child { padding-left: 10px; }
table.tbl.sfctbl th.sfch { text-align: center; border-left: 1px solid var(--line); }
/* 每格的输入框：原生上下箭头会盖住数字，直接关掉；宽度按最长数值（0.0001）留够 */
.sfctbl .sfcnum {
  width: 72px; padding: 0 4px; text-align: right;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.sfctbl .sfcnum::-webkit-outer-spin-button,
.sfctbl .sfcnum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 预设场景的预览/一览表：表头与数字一律居中（首列场景名左对齐）
   选择器要写成 .tbl.sfcprev，否则被 table.tbl th 的优先级盖掉 */
.tbl.sfcprev th, .tbl.sfcprev td { text-align: center; white-space: nowrap; }
.tbl.sfcprev th:first-child, .tbl.sfcprev td:first-child { text-align: left; }
.sfcdet { margin-top: 10px; }
.sfcdet summary { cursor: pointer; color: var(--brand); font-size: 12.5px; }

/* ---------- 上传 / 管理页 ---------- */
input.w110, .w110 { max-width: 110px; }
input.w90, .w90 { max-width: 90px; }
input.w220, .w220 { max-width: 220px; }
/* 快速定位输入框：要放下「坐标 23.30,113.35（离线可用）」整句提示（实测需 206px），
   并把度分秒长串一起囊住。注意必须 flex:none，否则会被同级按钮压到 170px。 */
input.w300, .w300 { flex: 0 0 auto; width: 300px; max-width: 100%; }
/* 源类型下拉：固定窄宽度，不再撑满一行 */
select.sel-narrow { width: 168px; max-width: 168px; flex: none; }
/* 点厂界弹出的「修改选项」 */
.bnd-hit { cursor: pointer; }
.bndpop .leaflet-popup-content { margin: 10px 12px; }
.bndpop-in .bndpop-xy { margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.bndpop-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.bndpop-acts button { padding: 5px 10px; font-size: 12.5px; }

/* 快速定位的落点标记 */
.gfind {
  background: #1d4ed8; border: 2px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.volfit { display: contents; }
.volfit[hidden] { display: none; }

/* 天地图 tk 申请说明（可展开） */
.tkrow { gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tkrow .tk-lbl { flex: none; }
.tkhelp {
  margin-top: 8px; padding: 8px 12px 6px; border: 1px dashed #b9d5c8;
  border-radius: 10px; background: #f6fbf8;
}
.tkhelp[hidden] { display: none; }
.tkhelp .plain { margin: 0 0 0 2px; padding-left: 16px; font-size: 12.5px; line-height: 1.75; }
.tkhelp .plain li { margin: 2px 0; }
.tklink {
  color: var(--brand); text-decoration: none;
  border-bottom: 1px solid rgba(14, 107, 79, .35);
}
.tklink:hover { border-bottom-color: var(--brand); }
/* 顶栏里的入口：跟旁边的 pill / 按钮同高，字号小一档 */
.topbar .tklink { font-size: 12.5px; white-space: nowrap; padding-bottom: 1px; }
input.w130, .w130 { max-width: 130px; }
input.w170, .w170 { max-width: 170px; }
.nowrap { white-space: nowrap; }
input[type=file] {
  font-size: 12.5px; color: var(--ink-2);
  border: 1px dashed var(--line); border-radius: 8px;
  /* 与其它控件同高：文件框常与「上传」按钮同行 */
  height: var(--ctl-h); padding: 0 8px; background: #fbfdfc; max-width: 300px;
}
input[type=file]::file-selector-button {
  font: inherit; font-size: 12.5px; cursor: pointer;
  height: calc(var(--ctl-h) - 8px); margin-right: 8px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink-2);
}
.pill.quota { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.tbl select { height: 28px; padding: 0 6px; }
/* 表格行密集，内部控件统一 28px，否则会和单元格里的按钮（32）混排 */
.tbl button, .tbl a.btn, .tbl input {
  height: 28px; padding: 0 10px; font-size: 12.5px;
}
.tbl input[type=checkbox], .tbl input[type=radio], .tbl input[type=file] {
  height: auto; padding: 0;
}
.tbl button { min-width: 0; }

/* 未接入计算的参数提示：不装样子，明确说出来 */
.notice {
  margin: 12px 0 0; padding: 9px 12px;
  background: #fff8e8; border: 1px solid #f2e2bd; border-left: 3px solid #c98a15;
  border-radius: 8px; color: #7a5a12; font-size: 12.5px; line-height: 1.6;
}

/* 等值线图例（HJ 2.2-2018 8.9.4：图例间距按标准值的 5%~100%） */
.cvlegend { margin: 10px 0 4px; }
.cv-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.cv-cell { flex: 1 1 96px; max-width: 150px; }
.cv-cell i {
  display: block; height: 11px; border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, .07);
}
.cv-cell span {
  display: block; margin-top: 2px; font-size: 10.5px;
  color: #6b7a72; text-align: center; white-space: nowrap;
}
.cvlegend .hint { margin: 6px 0 0; }

/* ---------- 运行待办清单（任务卡内逐步打勾） ---------- */
.runtodo {
  margin: 2px 0 12px; padding: 10px 12px;
  background: #f7faf8; border: 1px solid var(--line); border-radius: 8px;
}
.runtodo .rt-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px; font-size: 12px; color: var(--ink-3);
}
.runtodo .rt-count {
  font-family: ui-monospace, Consolas, "Courier New", monospace; color: var(--brand);
}
.runtodo .rt-list { list-style: none; margin: 0; padding: 0; }
.runtodo .rt {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3px 0; font-size: 13px; color: var(--ink-3);
}
.runtodo .rt i {
  font-style: normal; width: 15px; text-align: center; flex: none;
  font-family: ui-monospace, Consolas, "Courier New", monospace; color: #a8b5ae;
}
.runtodo .rt.done { color: var(--ink-2); }
.runtodo .rt.done i { color: var(--brand); font-weight: 700; }
.runtodo .rt.run { color: var(--ink); font-weight: 600; }
.runtodo .rt.run i { color: var(--warn); animation: rt-pulse 1.6s ease-in-out infinite; }
.runtodo .rt.fail { color: var(--err); }
.runtodo .rt.fail i { color: var(--err); }
.runtodo .rt-n { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
@keyframes rt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .runtodo .rt.run i { animation: none; } }

/* 天地图影像底图去饱和提亮：浓度叠加层是半透明色带，彩色卫星图会把它吃掉。
   导出成图在 canvas 里做了同一套处理（saturate(.30) brightness(1.16) + 30% 白），
   两处数值要一起改，否则屏幕和出图不是一块底。 */
.leaflet-container.tdt-dim .leaflet-tile-pane img {
  filter: saturate(.30) brightness(1.16) contrast(.92);
}

/* 日志面板底部状态条（原在头部，现移到底部） */
.logdrawer .logfoot {
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #12221b; border-top: 1px solid #0a130f;
  font-size: 11.5px; color: #8fb3a2;
}
.logdrawer .logfoot #logstat {
  font-size: 11.5px; color: #8fb3a2; padding: 1px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .06);
}

/* ---------- 版权与备案（排版对齐参考站：居中两行） ---------- */
.lg-legal { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; }
.lg-legal .legal-cr { margin: 0 0 6px; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .6); }
.lg-legal .legal-cr a { color: #7EE0B0; font-weight: 500; margin: 0 5px; text-decoration: none; }
.lg-legal .legal-cr a:hover { opacity: .85; }
.lg-legal .legal-links { color: rgba(255, 255, 255, .45); }

.legal-line { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.legal-line .legal-cr { margin: 0 0 6px; font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.legal-line .legal-cr a { color: var(--brand); font-weight: 500; margin: 0 5px; text-decoration: none; }
.legal-line .legal-cr a:hover { opacity: .85; }
.legal-line .legal-links { color: var(--ink-3); }

/* 两处共用：备案行（图标 + 文字，24px 间距） */
.lg-legal .legal-links, .legal-line .legal-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  font-size: 12px; line-height: 1.8;
}
.lg-legal .legal-links a, .legal-line .legal-links a {
  color: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.lg-legal .legal-links a:hover { color: #fff; }
.legal-line .legal-links a:hover { color: var(--brand); }
.lg-legal .legal-links img, .legal-line .legal-links img {
  width: 14px; height: 14px; display: block; opacity: .85;
}