/* ============================================================
 * 批 V21（2026-11-20）V21-4 B 件：节点抽屉新版（public/js/nd-io.js；设计稿 rv/V21-designs 稿 1 的 nd3- 样式）
 *   只管配了「进 / 办 / 出」的节点：「现在」块里的三格和一键检查、检查结果框（#nd-io-res）、三段（#nd3-secs）、放行弹窗（.nd3-rel）。
 *   表格、勾选框这几条前面加 #nd3-secs（比全站通用的规则更具体，用例 6454）。手机（≤ 600）：三格一行变窄、小表在自己框里横滑、行里操作换到右边。
 *   C 件：「办」的填写格（.nd3-fds 两栏、住址五格、同上一位、AI 认出黄底、候选、照片、保存条）；手机一栏、住址两栏、AI 那一条按钮靠右。
 * ============================================================ */
/* 「现在」块 */
.nd2-now .nd3-chkw { margin-left: auto; flex: none; }
.nd2-now .nd3-flow { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); align-items: stretch; padding: 0 16px 14px; }
.nd2-now .nd3-flow .arr { align-self: center; justify-self: center; color: var(--u-line-dot); display: flex; }
.nd2-now .nd3-f { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; align-items: center; padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 10px; background: var(--u-surface); min-width: 0; }
.nd2-now .nd3-f:hover { border-color: var(--u-brand-line); }
.nd2-now .nd3-f:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 1px; }
.nd2-now .nd3-f .bd { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--u-brand-soft); color: var(--u-brand); }
.nd2-now .nd3-f .l { font-size: 12px; line-height: 18px; color: var(--u-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd2-now .nd3-f .n { font-size: 18px; line-height: 22px; font-weight: 600; color: var(--u-ink); font-variant-numeric: tabular-nums; }
.nd2-now .nd3-f .n small { font-size: 12px; font-weight: 400; color: var(--u-ink-3); }
.nd2-now .nd3-f .n em { font-style: normal; font-size: 12px; font-weight: 500; margin-left: 8px; white-space: nowrap; display: inline-block; }
.nd2-now .nd3-f.ok .bd { background: var(--u-success-soft); color: var(--u-success); }
.nd2-now .nd3-f.ok .n em { color: var(--u-success); }
.nd2-now .nd3-f.warn { border-color: #f3d9a4; background: var(--u-warning-soft); }
.nd2-now .nd3-f.warn .bd { background: #fdebc8; color: var(--u-warning); }
.nd2-now .nd3-f.warn .n em { color: var(--u-warning); }
.nd2-now .nd3-f.off .bd { background: var(--u-neutral-soft); color: var(--u-ink-3); }
.nd2-now .nd3-f.off .n, .nd2-now .nd3-f.off .n em { color: var(--u-ink-3); font-weight: 400; }

/* 检查结果框 */
#nd-io-res .nd3-res { border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 20px; }
#nd-io-res .nd3-res.bad { background: var(--u-warning-soft); border: 1px solid #f3d9a4; color: #7a4b00; }
#nd-io-res .nd3-res.good { background: var(--u-success-soft); border: 1px solid #b7e4cc; color: #05603a; display: flex; gap: 8px; align-items: center; }
#nd-io-res .nd3-res h5 { margin: 0 0 6px; font-size: 14px; line-height: 22px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
#nd-io-res .nd3-res ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
#nd-io-res .nd3-res li { display: flex; gap: 8px; align-items: baseline; }
#nd-io-res .nd3-res li .tg { flex: none; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 999px; background: #fdebc8; font-weight: 600; }
#nd-io-res .nd3-res li .x { flex: 1; min-width: 0; color: var(--u-ink); }
#nd-io-res .nd3-res .u-btn.txt { flex: none; height: 20px; min-height: 0; padding: 0; font-size: 12px; }
#nd-io-res .nd3-res-l { margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--u-ink-3); }

/* 三段 */
#nd3-secs { display: flex; flex-direction: column; gap: 12px; }
#nd3-secs .nd3-hd .bd { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--u-brand-soft); color: var(--u-brand); flex: none; }
#nd3-secs .nd3-hd .c.bad { color: var(--u-alert); font-weight: 600; }
#nd3-secs .nd3-hd .note { margin-left: auto; font-size: 12px; color: var(--u-ink-3); display: inline-flex; align-items: center; gap: 4px; }
#nd3-secs .nd3-mxw { overflow-x: auto; }
#nd3-secs .nd3-mx { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
#nd3-secs .nd3-mx th { text-align: left; font-size: 12px; font-weight: 500; color: var(--u-ink-3); padding: 8px 12px; background: #fbfcfe; border-bottom: 1px solid var(--u-line); white-space: nowrap; }
#nd3-secs .nd3-mx th.p { width: 118px; }
#nd3-secs .nd3-mx th.p .u-ava { margin-right: 6px; }
#nd3-secs .nd3-mx th.p .nm { color: var(--u-ink); font-weight: 600; font-size: 13px; }
#nd3-secs .nd3-mx td { padding: 8px 12px; border-bottom: 1px solid var(--u-line); vertical-align: middle; }
#nd3-secs .nd3-mx tr:last-child td { border-bottom: 0; }
#nd3-secs .nd3-mx td.nm b { font-weight: 500; color: var(--u-ink); }
#nd3-secs .nd3-mx td.nm small { display: block; font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
#nd3-secs .nd3-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--u-success); font-size: 12px; white-space: nowrap; }
#nd3-secs .nd3-ok small { color: var(--u-ink-3); font-size: 12px; }
#nd3-secs .nd3-miss { display: inline-flex; align-items: center; gap: 6px; color: var(--u-warning); font-size: 12px; font-weight: 600; white-space: nowrap; }
#nd3-secs .nd3-pend, #nd3-secs .nd3-rel-st { font-size: 12px; color: var(--u-ink-3); white-space: nowrap; }
#nd3-secs .nd3-rel-st { color: var(--u-warning); }
#nd3-secs .u-btn.txt { height: 20px; min-height: 0; padding: 0; font-size: 13px; }
#nd3-secs .nd3-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--u-line); font-size: 13px; line-height: 20px; }
#nd3-secs .nd3-hd + .nd3-row { border-top: 0; }
#nd3-secs .nd3-row .ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--u-neutral-soft); color: var(--u-ink-2); }
#nd3-secs .nd3-row.done .ic { background: var(--u-success-soft); color: var(--u-success); }
#nd3-secs .nd3-row .m { flex: 1; min-width: 0; }
#nd3-secs .nd3-row .m b { font-weight: 500; color: var(--u-ink); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#nd3-secs .nd3-row .m small { display: block; font-size: 12px; line-height: 18px; color: var(--u-ink-3); overflow-wrap: anywhere; }
#nd3-secs .nd3-row .a { flex: none; display: flex; align-items: center; gap: 12px; }
#nd3-secs .nd3-kv { display: flex; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--u-line); font-size: 13px; line-height: 20px; }
#nd3-secs .nd3-kv .k { flex: 0 0 140px; color: var(--u-ink-3); }
#nd3-secs .nd3-kv .k .req { color: var(--u-alert); }
#nd3-secs .nd3-kv .v { flex: 1; min-width: 0; color: var(--u-ink); overflow-wrap: anywhere; }
#nd3-secs .nd3-kv.miss .v { color: var(--u-alert); }
#nd3-secs .nd3-ck { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--u-line); font-size: 13px; line-height: 20px; }
#nd3-secs .nd3-ck input[type=checkbox] { margin: 3px 0 0; width: 16px; height: 16px; flex: none; }
#nd3-secs .nd3-ck .m { flex: 1; min-width: 0; }
#nd3-secs .nd3-ck .m b { font-weight: 500; margin-right: 6px; }
#nd3-secs .nd3-ck .m small { display: block; font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
#nd3-secs .nd3-pp { border-top: 1px solid var(--u-line); }
#nd3-secs .nd3-pp > .h { display: flex; align-items: center; gap: 8px; padding: 10px 16px 2px; font-size: 13px; }
#nd3-secs .nd3-pp > .h .nm { font-weight: 600; color: var(--u-ink); }
#nd3-secs .nd3-pp > .h small { color: var(--u-ink-3); font-size: 12px; }
#nd3-secs .nd3-pp .nd3-kv { border-top: 0; }
#nd3-secs .nd3-steps { border-top: 1px solid var(--u-line); }
#nd3-secs .nd3-steps > summary { list-style: none; cursor: pointer; padding: 9px 16px; font-size: 13px; color: var(--u-ink-2); display: flex; align-items: center; gap: 6px; }
#nd3-secs .nd3-steps > summary::-webkit-details-marker { display: none; }
#nd3-secs .nd3-steps > summary .r { margin-left: auto; color: var(--u-brand); }
#nd3-secs .nd3-steps .nd2-how { margin: 0; padding: 0 16px 12px 36px; }
#nd3-secs .nd3-next { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--u-line); background: #fbfcfe; font-size: 12px; line-height: 18px; color: var(--u-ink-2); }
#nd3-secs .nd3-next .u-ic { flex: none; margin-top: 2px; color: var(--u-ink-3); }
#nd3-secs .nd3-pushed { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--u-success); font-weight: 500; }
#nd3-secs .nd3-ban > #nd-visit { border: 0; border-top: 1px solid var(--u-line); border-radius: 0; }
#nd3-secs .nd3-hit { background: #fffbeb; transition: background .3s; }

/* 办（C 件）：在抽屉里填——两栏格子、住址五格、同上一位、AI 认出（黄底待核对）、候选、照片、保存条 */
#nd3-secs .nd3-fds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; padding: 10px 16px 12px; border-top: 1px solid var(--u-line); }
#nd3-secs .nd3-pp .nd3-fds { border-top: 0; padding-top: 6px; }
#nd3-secs .nd3-fd { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#nd3-secs .nd3-fd.w2 { grid-column: 1 / -1; }
#nd3-secs .nd3-fd .u-label > .k { font-size: 12px; line-height: 18px; color: var(--u-ink-2); }
#nd3-secs .nd3-fd .u-label > .k .req, #nd3-secs .nd3-ck .req { color: var(--u-alert); margin-left: 2px; }
#nd3-secs .nd3-fd .u-input { width: 100%; box-sizing: border-box; }
#nd3-secs .nd3-fd .u-input:disabled { background: var(--u-ground); color: var(--u-ink-2); cursor: not-allowed; }
#nd3-secs .nd3-fd.miss .u-input { border-color: var(--u-alert); }
#nd3-secs .nd3-fd.ai .u-input { background: #fffbeb; border-color: #f3d9a4; }
#nd3-secs .nd3-addr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
#nd3-secs .nd3-addr .u-input:nth-child(1) { grid-column: span 2; }
#nd3-secs .nd3-addr .u-input:nth-child(2) { grid-column: span 4; }
#nd3-secs .nd3-addr .u-input:nth-child(n+3) { grid-column: span 2; }
#nd3-secs .nd3-same { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: var(--u-ink-2); cursor: pointer; }
#nd3-secs .nd3-same input[type=checkbox] { margin: 0; width: 14px; height: 14px; }
#nd3-secs .nd3-fx:empty { display: none; }
#nd3-secs .nd3-aitag, #nd3-secs .nd3-src { display: inline-flex; align-items: flex-start; gap: 4px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
#nd3-secs .nd3-aitag { color: #7a4b00; }
#nd3-secs .nd3-aitag.off { color: var(--u-ink-3); }
#nd3-secs .nd3-src { color: var(--u-ink-3); }
#nd3-secs .nd3-aitag .u-ic, #nd3-secs .nd3-src .u-ic { flex: none; margin-top: 3px; }
#nd3-secs .nd3-kv .v .nd3-src { display: flex; margin-top: 2px; }
#nd3-secs .nd3-cands { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; line-height: 18px; color: #7a4b00; }
#nd3-secs .nd3-cands small { flex-basis: 100%; font-size: 12px; }
#nd3-secs .nd3-ph { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 1px solid var(--u-line); border-radius: 8px; background: var(--u-surface); font-size: 13px; }
#nd3-secs .nd3-ph .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-ink); }
#nd3-secs .nd3-ph .u-ic { flex: none; color: var(--u-ink-3); }
#nd3-secs .u-btn.nd3-phup { width: 100%; justify-content: center; border-style: dashed; color: var(--u-brand); }
#nd3-secs .nd3-aibar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 16px 0; padding: 8px 12px; border-radius: 10px; background: var(--u-brand-soft); font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
#nd3-secs .nd3-aibar > .u-ic { flex: none; color: var(--u-brand); }
#nd3-secs .nd3-aibar .t { flex: 1; min-width: 0; }
#nd3-secs .nd3-ainote { flex-basis: 100%; font-size: 12px; line-height: 18px; color: #7a4b00; }
#nd3-secs .nd3-dosave { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--u-line); }
#nd3-secs .nd3-dosave .st { font-size: 12px; color: var(--u-warning); }
#nd3-secs .nd3-pp > .h .st { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; }
#nd3-secs .nd3-pp > .h .st.ok { color: var(--u-success); }
#nd3-secs .nd3-pp > .h .st.bad { color: var(--u-warning); }
#nd3-secs .nd3-stale { color: var(--u-warning); font-weight: 500; }

/* 放行弹窗 */
.nd3-rel { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 22px; }
.nd3-rel .box { padding: 10px 12px; border-radius: 8px; background: var(--u-ground); font-size: 13px; line-height: 20px; color: var(--u-ink-2); }
.nd3-rel .box b { color: var(--u-ink); }
#modal-root .nd3-rel textarea { width: 100%; box-sizing: border-box; min-height: 76px; padding: 8px 10px; border: 1px solid var(--u-control); border-radius: 8px; font: inherit; font-size: 14px; line-height: 22px; }
.nd3-rel .tip { font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.nd3-rel .nd3-rel-err { font-size: 13px; color: var(--u-alert); }

@media (max-width: 600px) {
  .nd2-now .nd3-flow { padding: 0 12px 12px; grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr); }
  .nd2-now .nd3-flow .arr { visibility: hidden; }
  .nd2-now .nd3-f { grid-template-columns: 1fr; padding: 8px; }
  .nd2-now .nd3-f .bd { grid-row: auto; width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
  .nd2-now .nd3-f .n { font-size: 16px; }
  .nd2-now .nd3-f .n em { display: block; margin: 0; }
  #nd3-secs .nd3-hd .note { display: none; }
  #nd3-secs .nd3-mx th.p { width: auto; }
  #nd3-secs .nd3-mx th, #nd3-secs .nd3-mx td { padding: 8px; }
  #nd3-secs .nd3-row { flex-wrap: wrap; row-gap: 4px; }
  #nd3-secs .nd3-row .m { flex: 1 1 150px; }
  #nd3-secs .nd3-row .a { flex: 0 0 auto; margin-left: auto; }
  #nd3-secs .nd3-kv { flex-direction: column; gap: 2px; }
  #nd3-secs .nd3-kv .k { flex: none; }
  #nd3-secs .nd3-fds { grid-template-columns: minmax(0, 1fr); padding: 10px 12px 12px; }
  #nd3-secs .nd3-addr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #nd3-secs .nd3-addr .u-input:nth-child(n) { grid-column: span 1; }
  #nd3-secs .nd3-addr .u-input:nth-child(-n+2) { grid-column: 1 / -1; }
  #nd3-secs .nd3-aibar { margin: 10px 12px 0; }
  #nd3-secs .nd3-aibar .u-btn { margin-left: auto; }
  #nd3-secs .nd3-dosave { padding: 10px 12px; }
}
