/* ---------- 抗性面板：显示模式 / 分组 / 拖动 / 模板 ---------- */
.res-ctl{margin-bottom:7px}
.res-ctl-row{display:flex;align-items:center;gap:4px;margin-bottom:4px;flex-wrap:wrap}
.res-ctl-lb{font-size:10px;color:var(--label);font-weight:700;flex-shrink:0;min-width:26px}
.res-ctl-row button{
  font-family:inherit;font-size:10.5px;font-weight:700;padding:3px 8px;
  border:1px solid var(--border);border-radius:6px;background:var(--bg3);color:var(--text2);cursor:pointer;
}
.res-ctl-row button.on{background:var(--label);color:var(--bg);border-color:var(--label)}
.res-tpl-bar{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.res-tpl-bar button{
  font-family:inherit;font-size:10px;padding:3px 7px;border:1px solid var(--accent3);
  border-radius:6px;background:rgba(55,200,171,.12);color:var(--accent2);cursor:pointer;
}
.res-tpl-tip{font-size:9.5px;color:var(--text2)}
.res-grp{margin-bottom:7px;border-radius:7px;transition:outline-color .15s}
.res-grp.drag-over{outline:2px dashed var(--accent2);outline-offset:2px}
.res-grp-h{display:flex;align-items:center;gap:5px;cursor:default}
.res-grp[data-drag-grp]{cursor:grab}
.res-grp-h[data-grp-name]{cursor:text}
.res-grp-n{font-size:9.5px;color:var(--text2);background:var(--bg4);border-radius:5px;padding:0 5px;font-weight:700}
/* 档位+数值 双显：数值紧跟在文字后面（横排，不是换行） */
.res-num-tag{display:inline;font-size:9px;font-style:normal;color:var(--text2);line-height:1;margin-left:3px;font-weight:700;opacity:.85}
.res .rv.res-word{font-size:10px;font-weight:800;letter-spacing:-.2px;line-height:1.15}
.res .rv.res-word.w{color:var(--bad)}
.res .rv.res-word.n{color:var(--text2)}
.res .rv.res-word.a{color:var(--good)}
.res .rv.res-word.b{color:var(--good)}
.res .rv.res-word.c{color:var(--accent2)}
.res .rv.res-word.d{color:var(--blue)}
.res .rv.res-word.e{color:var(--purple)}
.res .rv.res-word.f{color:var(--gold)}

/* 自定义分组：新增/删除/空态/拖动幽灵 */
.res-grp-del{
  margin-left:auto;background:none;border:none;color:var(--bad);font-size:15px;
  line-height:1;padding:0 4px;cursor:pointer;font-family:inherit;
}
.res-grp-empty{font-size:10.5px;color:var(--text2);padding:5px 8px;border:1px dashed var(--border);border-radius:6px}
.res-drag-ghost{
  position:fixed;z-index:99999;pointer-events:none;font-size:11px;font-weight:700;
  color:var(--text);background:var(--bg2);border:1px solid var(--accent);
  border-radius:6px;padding:4px 9px;box-shadow:0 4px 14px rgba(0,0,0,.55);
}
.res-grp.drag-over{outline:2px dashed var(--accent);outline-offset:2px;background:rgba(55,200,171,.06)}
.res-grp[data-drag-grp] .res{cursor:grab;touch-action:none}

/* 弱点→吸收 紧凑网格：分组标题已表达档位，胶囊只留图标+名称，宽度大幅收窄 */
.res-compact .res-grid{display:flex;flex-wrap:wrap;gap:3px}
.res-compact .res{padding:3px 7px;gap:4px;flex:0 0 auto;width:auto;min-width:0;max-width:none}
.res-compact .res img{width:14px;height:14px}
.res-compact .res .rn{font-size:11px}
.res-compact .res .rv{display:none!important}

/* 拖动插入位置预览 */
.res-drop-line{height:2px;background:var(--accent);border-radius:2px;margin:2px 0;box-shadow:0 0 6px rgba(55,200,171,.8)}
.res-drop-line.inline{display:block;grid-column:1/-1}

