/* ============================================================
   节点信息层（点节点行弹出）
   放在 .body 内、.scroll 之外 —— 这样不会被 .scroll 的 overflow 裁掉，
   也能盖住标签栏。定位上下文是 .body（position: relative）。
   ============================================================ */
.nsheet {
  position: absolute; inset: 0;
  z-index: 40;
  pointer-events: none;
}

/* ---------- 遮罩 ---------- */
.nsheet__mask {
  position: absolute; inset: 0;
  background: rgba(11, 18, 32, .38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .32s ease;
}
.nsheet.is-open { pointer-events: auto; }
.nsheet.is-open .nsheet__mask { opacity: 1; }

/* ---------- 面板：从底部滑入 ---------- */
.nsheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92%;
  display: flex; flex-direction: column;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  box-shadow: 0 -18px 48px rgba(9, 16, 30, .26);
  padding: 0 20px calc(16px + var(--safe-bottom));
  transform: translateY(101%);
  transition: transform .42s cubic-bezier(.22, .9, .25, 1);
  overflow: hidden;
}
.nsheet.is-open .nsheet__panel { transform: none; }

/* 顶部拖拽条 */
.nsheet__grab {
  display: block; width: 38px; height: 4px; border-radius: 99px;
  background: rgba(11, 18, 32, .16);
  margin: 9px auto 0;
  flex-shrink: 0;
}

/* ---------- 头部 ---------- */
.nsheet__head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 0 14px;
  border-bottom: 1px solid rgba(11, 18, 32, .07);
}
.nsheet__flag {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.nsheet__ttl { flex: 1; min-width: 0; }
.nsheet__name {
  font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: #10203A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nsheet__sub {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: #7E8FA8; margin-top: 5px;
}
.nsheet__cur {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px;
  background: rgba(10, 132, 255, .11);
  color: #0A5FC4; font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
}
.nsheet__x {
  flex: 0 0 30px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(11, 18, 32, .06);
  color: #5A6B84; font-family: inherit; font-size: 13px; font-weight: 700;
}

/* ---------- 三格指标 ---------- */
.nsheet__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 15px 0 4px;
}
.nsheet__cell { padding-right: 10px; min-width: 0; }
.nsheet__cell + .nsheet__cell {
  padding-left: 12px; padding-right: 10px;
  border-left: 1px solid rgba(11, 18, 32, .07);
}
.nsheet__k {
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #9AA6B8;
}
.nsheet__v {
  font-size: 20px; font-weight: 800; letter-spacing: -.035em;
  color: #10203A; margin-top: 7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nsheet__v small { font-size: 11px; font-weight: 650; color: #7E8FA8; margin-left: 2px; }
.nsheet__mini {
  height: 4px; border-radius: 99px; margin-top: 9px;
  background: rgba(11, 18, 32, .10); overflow: hidden;
}
.nsheet__mini i {
  display: block; height: 100%; border-radius: 99px;
  background: #2F9D62;
  transition: width .5s cubic-bezier(.22, .9, .25, 1), background .3s;
}
.nsheet__mini--ok i   { background: #C8871A; }
.nsheet__mini--busy i { background: #CF3F3C; }

/* ---------- 分组标题 ---------- */
.nsheet__sec {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  font-size: 10px; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: #9AA6B8;
}
.nsheet__sec span:last-child {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0;
  text-transform: none; color: #7E8FA8; font-variant-numeric: tabular-nums;
}

/* ---------- 延迟迷你波形 ---------- */
.nsheet__spark {
  display: flex; align-items: flex-end; gap: 3px;
  height: 46px; margin-top: 10px;
}
.nsheet__spark i {
  flex: 1; border-radius: 2px;
  background: linear-gradient(180deg, #7FB6FF, #4A8AE6);
  opacity: .9;
}

/* ---------- 说明列表 ---------- */
.nsheet__list {
  margin: 10px 0 0; padding: 0; list-style: none;
}
.nsheet__list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 18, 32, .06);
  font-size: 13px;
}
.nsheet__list li:last-child { border-bottom: 0; }
.nsheet__list b { font-weight: 700; color: #8E9AAC; font-size: 12px; flex: 0 0 auto; }
.nsheet__list span { color: #1B2B45; text-align: right; }

/* ---------- 主操作 ---------- */
.nsheet__go {
  width: 100%; height: 48px; margin-top: 16px;
  border: 0; border-radius: 14px;
  background: linear-gradient(158deg, #6FA8F0 0%, #4A8AE6 60%, #3D7BD4 100%);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(74, 138, 230, .28);
  flex-shrink: 0;
}
.nsheet__go:active { transform: scale(.985); }
.nsheet__go--off {
  background: rgba(11, 18, 32, .06);
  color: #4A5A72; box-shadow: none;
}
