/* ══════════════════════════════════════════════════════════
   07-members.css · 人员安排（参考稿：胶囊项目名 + 流光 + 三栏）
   ══════════════════════════════════════════════════════════ */

.mp-wrap{padding:12px 22px 0;display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:stretch}

/* ══════════ 左：人员池（撑满左栏，内部滚动） ══════════ */
.mp-source{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;
  background:#fff;border:1px solid #efeaf7;border-radius:18px;padding:14px 14px 16px;
  box-shadow:0 8px 26px rgba(70,50,110,.07);position:relative;z-index:3}
.mp-source-hd{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.mp-source-hd .ico{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  background:#f2ecff;color:#7b4bd6;flex:none}
.mp-source-hd .t{font-size:14px;font-weight:800;color:#23262f}
.mp-source-hd .n{font-size:10.5px;font-weight:800;color:#6d3fd6;background:#f1e9ff;border-radius:6px;padding:2px 8px}
.mp-source-tip{font-size:11px;color:#a9a3b8;margin:2px 0 10px}

/* 工种筛选 */
.role-filter{position:relative;margin-left:auto}
.role-filter select{appearance:none;-webkit-appearance:none;height:30px;padding:0 26px 0 10px;border-radius:9px;
  border:1px solid #e6dcf8;background:#faf7ff;color:#5b2f9e;font-size:11.5px;font-weight:700;cursor:pointer;
  max-width:132px}
.role-filter select:focus{outline:none;border-color:#b493ee;box-shadow:0 0 0 3px #f1e9ff}
.role-filter::after{content:"";position:absolute;right:10px;top:50%;width:6px;height:6px;
  border-right:1.6px solid #8b7aa8;border-bottom:1.6px solid #8a7aa8;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.role-filter .fi{position:absolute;left:9px;top:50%;transform:translateY(-50%);color:#8b7aa8;pointer-events:none}

.src-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:12px 4px;flex:1;min-height:0;
  align-content:start;overflow:auto;padding:2px}
.src-person{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:grab;user-select:none;padding:3px 0;border-radius:10px}
.src-person:hover{background:#faf8ff}
.src-person.dragging{opacity:.4}
.src-person.done{opacity:.34;cursor:default}
.src-person .nm{font-size:10px;color:#4b5062;font-weight:600;max-width:64px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.src-empty{grid-column:1/-1;text-align:center;color:#b4adc4;font-size:11.5px;padding:20px 0}

/* ══════════ 头像 ══════════ */
.avx{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;
  font-size:12.5px;font-weight:800;flex:none;position:relative;
  box-shadow:0 3px 9px rgba(90,60,140,.16),0 0 0 2px #fff}
.avx.xs{width:36px;height:36px;font-size:11px}
.avx.v0{background:linear-gradient(135deg,#9fc7ff,#6f9bff)}
.avx.v1{background:linear-gradient(135deg,#ffb1c8,#ff8fb0)}
.avx.v2{background:linear-gradient(135deg,#a8e6c8,#5fd6a8)}
.avx.v3{background:linear-gradient(135deg,#ffd59a,#ffb96b)}
.avx.v4{background:linear-gradient(135deg,#c9b3ff,#9b7bff)}
.avx.v5{background:linear-gradient(135deg,#9ee0ef,#5cc3da)}

/* ══════════ 右：项目名 + 可编辑/只读两栏 + 底部进度 ══════════ */
.mp-right{position:relative;grid-column:2 / 3;display:flex;flex-direction:column;
  align-items:stretch;gap:14px;min-width:0}

/* 胶囊：顶部居中，不再留 74px 空档 */
.project-pill{position:relative;z-index:5;align-self:center;margin:0;display:flex;align-items:center;gap:9px;
  padding:9px 18px 9px 12px;border-radius:999px;background:#fff;
  border:1px solid #eee6fa;box-shadow:0 10px 30px rgba(104,95,132,.14),0 2px 6px rgba(104,95,132,.06);
  white-space:nowrap}
.project-pill .pp-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;
  background:linear-gradient(135deg,#b894ff,#8b5cf6);color:#fff;box-shadow:0 4px 10px rgba(139,92,246,.32)}
.project-pill .pp-name{font-size:15px;font-weight:800;color:#23262f;letter-spacing:-.01em}
.project-pill .pp-code{font-size:11px;color:#9a94ab;font-weight:600}
.project-pill .pp-count{font-size:11px;color:#7b4bd6;font-weight:800;background:#f4efff;border-radius:999px;padding:2px 9px}
.project-pill .pp-arrow{color:#c0b9cf;display:grid;place-items:center}

/* 流光层：留出项目胶囊到成员框的连线距离 */
.beams{position:absolute;left:0;right:0;top:0;height:340px;pointer-events:none;z-index:4;overflow:visible}

.pools-row{position:relative;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:14px;
  width:100%;flex:1;min-height:300px;margin-top:92px}

/* 池子：两栏等高等宽，内部滚动 */
.pool{position:relative;display:flex;flex-direction:column;border-radius:20px;padding:13px 15px 16px;
  min-height:0;height:100%;overflow:hidden;
  border:1px solid transparent;transition:border-color .16s,box-shadow .16s,transform .16s}
.pool::after{content:"";position:absolute;inset:0;border-radius:20px;pointer-events:none;
  box-shadow:inset 0 1px 0 #ffffffcc}

/* 只读组：蓝调玻璃 */
.pool.read-pool{
  background:
    radial-gradient(120% 90% at 12% 0%, #dbeafe 0%, #eaf4ff00 62%),
    linear-gradient(165deg,#f4f9ff 0%,#fbfdff 45%,#ffffff 100%);
  border-color:#cfe3fa;
  box-shadow:0 12px 30px rgba(74,144,226,.14), 0 2px 6px rgba(74,144,226,.06);
}
/* 可编辑组：紫粉玻璃 */
.pool.edit-pool{
  background:
    radial-gradient(120% 90% at 12% 0%, #ede4ff 0%, #f7efff00 62%),
    linear-gradient(165deg,#faf5ff 0%,#fdf9ff 45%,#ffffff 100%);
  border-color:#e3d3fb;
  box-shadow:0 12px 30px rgba(139,92,246,.16), 0 2px 6px rgba(139,92,246,.07);
}
.pool:hover{transform:translateY(-1px)}
.read-pool:hover{box-shadow:0 16px 38px rgba(74,144,226,.20)}
.edit-pool:hover{box-shadow:0 16px 38px rgba(139,92,246,.22)}

/* 顶部彩色光带 */
.pool::before{content:"";position:absolute;left:0;right:0;top:0;height:58px;pointer-events:none;border-radius:20px 20px 0 0}
.read-pool::before{background:linear-gradient(120deg,#bfdcff 0%,#e8f3ff80 45%,#ffffff00 100%)}
.edit-pool::before{background:linear-gradient(120deg,#d8c4ff 0%,#f0e6ff80 45%,#ffffff00 100%)}
.pool.over{border-color:#8b5cf6;box-shadow:0 0 0 3px #efe7ff inset}
.pool.over-remove{border-color:#e5484d;box-shadow:0 0 0 3px #ffeced inset}

.pool-hd{position:relative;z-index:4;display:flex;align-items:center;gap:7px;margin-bottom:10px}
.pool-hd .pm-ico{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;flex:none;color:#fff}
.read-pool .pool-hd .pm-ico{background:linear-gradient(135deg,#7fb6f5,#4a90e2)}
.edit-pool .pool-hd .pm-ico{background:linear-gradient(135deg,#b894ff,#8b5cf6)}
.pool-hd .pm-t{font-size:13px;font-weight:800;color:#23262f}
.pool-hd .pm-n{font-size:10px;font-weight:800;border-radius:5px;padding:1px 7px}
.read-pool .pool-hd .pm-n{background:#e9f2ff;color:#3976c6}
.edit-pool .pool-hd .pm-n{background:#f1e9ff;color:#6d3fd6}
.pool-hd .pm-perm{margin-left:auto;font-size:10px;color:#b4adc4;white-space:nowrap}
.pool-hd .pm-arrow{color:#d6cfe6;display:grid;place-items:center;margin-left:2px}

.pool-grid{position:relative;z-index:4;display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:12px 4px;
  flex:1;min-height:0;align-content:start;overflow:auto}
.pool-slot{min-height:0}
.mem{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:grab;user-select:none;
  padding:3px 0;border-radius:10px;transition:transform .14s}
.mem:hover{transform:translateY(-2px)}
.mem.dragging{opacity:.4}
.mem .nm{font-size:10px;font-weight:700;color:#3b3550;max-width:64px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;text-align:center}
.mem .tag{font-size:8px;font-weight:800;border-radius:4px;padding:0 4px;line-height:12px}
.mem .tag.pmc{background:#f1e9ff;color:#6d3fd6}

.pool-empty{position:absolute;inset:54px 14px 14px;display:grid;place-items:center;border-radius:12px;
  border:1.5px dashed #e8e0f6;color:#b4adc4;font-size:11px;text-align:center;padding:8px;z-index:3}

/* 右键菜单 */
.ctx-menu{position:fixed;z-index:900;min-width:150px;background:#fff;border:1px solid #ece7f6;border-radius:11px;
  box-shadow:0 14px 38px rgba(60,40,100,.18);padding:5px;display:none}
.ctx-menu.on{display:block}
.ctx-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 11px;border-radius:8px;
  font-size:12.5px;color:#4b5062;text-align:left;border:0;background:none;cursor:pointer}
.ctx-menu button:hover{background:#f8f4ff;color:#6d3fd6}
.ctx-menu button.danger{color:#c4242a}
.ctx-menu button.danger:hover{background:#fff1f2}

/* 浮层 */
.mem-pop{position:fixed;z-index:910;width:206px;background:#fff;border:1px solid #ece7f6;border-radius:12px;
  box-shadow:0 16px 40px rgba(60,40,100,.18);padding:13px 14px;display:none}
.mem-pop.on{display:block}
.mem-pop .pp-n{font-size:13px;font-weight:800;color:#2b2d3a;display:flex;align-items:center;gap:7px}
.mem-pop .pp-row{display:flex;justify-content:space-between;font-size:11.5px;color:#8a8fa3;margin-top:7px}
.mem-pop .pp-row b{color:#3b3550;font-weight:600}

@media(max-width:1240px){
  .mp-wrap{grid-template-columns:1fr;padding:12px 18px 0}
  .mp-source{height:auto;max-height:460px}
  .mp-right{grid-column:1}
  .pools-row{grid-template-columns:1fr;min-height:0;margin-top:64px}
  .pool{min-height:220px}
}




/* ══════════ 成员头像进度环 ══════════ */
.ava-ring{position:relative;width:52px;height:52px;display:grid;place-items:center;flex:none}
.ava-ring .ring-svg{position:absolute;inset:0;width:52px;height:52px;transform:rotate(-90deg);pointer-events:none}
.ava-ring .rb{fill:none;stroke:#eee9f8;stroke-width:3.4}
.ava-ring .rf{fill:none;stroke-width:3.4;stroke-linecap:round;transition:stroke-dasharray .35s}
.ava-ring .avx{width:42px;height:42px;font-size:12.5px}

/* 成员池：头像放大 + 向下移，避开顶部色块 */
.pool{padding-top:18px}
.pool-grid{margin-top:4px;gap:16px 6px}
.mem{gap:6px}
.mem .nm{font-size:11.5px;max-width:76px}
.mem .pct{font-size:10px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}

/* 左池头像同步放大一点 */
.src-person .avx.xs{width:38px;height:38px;font-size:11.5px}
.src-person .nm{font-size:10.5px;max-width:68px}

@media(max-width:1240px){
  .ava-ring{width:48px;height:48px}
  .ava-ring .ring-svg{width:48px;height:48px}
  .ava-ring .avx{width:38px;height:38px}
}

/* ══════════ 我自己的工作进度条（右栏底部整条） ══════════ */
.my-progress{position:relative;z-index:5;margin:0;width:100%;
  background:linear-gradient(120deg,#faf6ff,#fdf7fc);
  border:1px solid #ece2fb;border-radius:18px;padding:14px 18px;box-shadow:0 8px 24px rgba(104,95,132,.08)}
.mp-hd{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.mp-ico{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;flex:none;
  background:linear-gradient(135deg,#b894ff,#8b5cf6);color:#fff}
.mp-t{font-size:13px;font-weight:800;color:#3d1d7a}
.mp-s{font-size:11px;color:#a9a3b8}
.mp-me{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:12px;color:#4b5062}
.mp-me .mp-role{font-size:10.5px;font-weight:700;color:#7a54c9;background:#f3edff;border:1px solid #e4d5fb;
  border-radius:999px;padding:2px 8px;white-space:nowrap}
.mp-body{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.mp-inp{min-width:140px}
.mp-inp label{display:block;font-size:11px;font-weight:700;color:#6b5a8a;margin-bottom:5px}
.mp-box{display:flex;align-items:center;gap:6px;height:44px;padding:0 12px;border-radius:11px;
  border:1.5px solid #e6dcf8;background:#fff}
.mp-box:focus-within{border-color:#a97ff0;box-shadow:0 0 0 3px #f3ecff}
.mp-box input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:19px;font-weight:800;
  color:#2b2d3a;font-variant-numeric:tabular-nums;width:64px}
.mp-box span{font-size:11px;color:#a9a3b8;font-weight:600}
.mp-ring{position:relative;width:56px;height:56px;flex:none}
.mp-ring svg{width:56px;height:56px;transform:rotate(-90deg)}
.mp-ring .rb{fill:none;stroke:#ece6f8;stroke-width:6}
.mp-ring .rf{fill:none;stroke:#8b5cf6;stroke-width:6;stroke-linecap:round;transition:stroke-dasharray .35s}
.mp-ring span{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;font-weight:800;color:#5b2f9e}
#mySubmit{height:44px;padding:0 22px;border-radius:11px;flex:none}
.mp-actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 22px 22px}
@media(max-width:900px){.mp-body{gap:10px}.mp-inp{flex:1;min-width:110px}.mp-actions{padding:10px 18px 18px}}
