/* team.css —— 组队悬浮面板样式(参照幸存者吸血鬼 build 面板) */
.team-panel {
  position: fixed; z-index: 90; width: 400px; max-width: calc(100vw - 16px);
  background: rgba(15, 31, 23, .92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  font-size: 13px; color: var(--text);
}
.team-panel.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 210, 87, .25), 0 16px 40px rgba(0, 0, 0, .55); }
.tp2-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px 8px; cursor: move; user-select: none; }
.tp2-title { font-weight: 700; color: var(--accent); flex: none; }
.tp2-select {
  flex: 1; min-width: 0; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; font-size: 12.5px;
}
.tp2-btn { background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px 8px; cursor: pointer; font-size: 13px; }
.tp2-btn:hover { color: var(--text); border-color: var(--accent); }
.tp2-name { margin: 0 12px 8px; }
.tp2-name input, .tp2-add input {
  width: 100%; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); outline: none; font-size: 13px;
}
.tp2-name input:focus, .tp2-add input:focus { border-color: var(--accent); }
.tp2-add { position: relative; margin: 0 12px 8px; }
.tp2-results {
  position: absolute; left: 0; right: 0; top: 34px; z-index: 5;
  background: #101f18; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5); max-height: 260px; overflow: auto; padding: 4px;
}
.tp2-hit { display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 4px 6px; border: none; background: none; color: var(--text);
  border-radius: 6px; cursor: pointer; text-align: left; font-size: 12.5px; }
.tp2-hit:hover { background: rgba(255, 210, 87, .12); }
.tp2-hit img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.tp2-hit em { font-style: normal; color: var(--muted); font-size: 10.5px; margin-left: auto; flex: none; }
.tp2-sec { padding: 6px 12px 2px; color: var(--muted); font-size: 11.5px; }
.tp2-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px; }
.team-pal { position: relative; display: flex; align-items: center; gap: 5px;
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); cursor: pointer; }
.team-pal:hover { border-color: var(--accent); }
.team-pal img { width: 24px; height: 24px; object-fit: contain; }
.team-pal span { font-size: 12px; white-space: nowrap; }
.team-pal .x { display: none; position: absolute; top: -6px; right: -6px; width: 16px; height: 16px;
  border-radius: 50%; border: none; background: var(--danger); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; cursor: pointer; padding: 0; }
.team-pal:hover .x { display: block; }
.tp2-empty { padding: 2px 12px 12px; color: var(--muted); font-size: 12px; }
.tp2-sum { border-top: 1px dashed var(--line); padding: 8px 12px 4px; }
.tp2-sum h4 { margin: 0 0 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tp2-works { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tp2-work { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 11.5px; }
.tp2-work img { width: 15px; height: 15px; }
.tp2-work b { color: var(--accent); font-weight: 650; }
.tp2-work.zero { opacity: .38; filter: saturate(.4); }
.tp2-els { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.tp2-foot { padding: 6px 12px 10px; color: var(--muted); font-size: 11px; border-top: 1px dashed var(--line); }
@media (max-width: 640px) {
  .team-panel { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 55vh; overflow: auto; }
  .tp2-head { cursor: default; }
}
